HDC GetDC( );
See GetDC in the Win32 SDK.
Remarks
Retrieves a device context for the client area.
Example
// The following example attaches a HWND to the CWindow object
// and calls CWindow::GetDC to retrieve the DC of the client
// area of the window wrapped by CWindow Object.
CWindow myWindow;
myWindow.Attach(hWndFoo);
HDC hDC = myWindow.GetDC();
CWindow Overview | Class Members
See Also CWindow::GetDCEx, CWindow::GetWindowDC, CWindow::ReleaseDC