Condividi tramite


CWindow::GetWindowDC

Recupera un contesto di dispositivo per l'intera finestra.

HDC GetWindowDC() throw();

Note

Vedere GetWindowDC in Windows SDK.

Esempio

//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();

Requisiti

Header: atlwin.h

Vedere anche

Riferimenti

Classe di CWindow

CWindow::GetDC

CWindow::GetDCEx

CWindow::ReleaseDC