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