Similar to
client-area device contexts are window device contexts,
represented by the CWindowDC class. The constructor and
destructor of CWindowDC encapsulate calls to
GetWindowDC
and ReleaseDC, respectively.
VC++ MFC Tutorial, Free Source Code Download