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


CWindow::GetWindowDC

Получает контекст устройства для всего окна.

HDC GetWindowDC() throw();

Заметки

См. раздел GetWindowDC в 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::GetDC

CWindow::GetDCEx

CWindow::ReleaseDC