Поделиться через


CWindow::GetWindowDC

Retrieves a device context for the entire window.

HDC GetWindowDC() throw();

Заметки

See GetWindowDC in the Windows SDK.

Пример

//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(hWnd);
HDC hDC = myWindow.GetWindowDC();

Требования

Header: atlwin.h

См. также

Основные понятия

CWindow Class

CWindow Members

CWindow::GetDC

CWindow::GetDCEx

CWindow::ReleaseDC