Compartir a través de


CWindow::GetWindowDC

Recupera un contexto para la ventana completa.

HDC GetWindowDC() throw();

Comentarios

Vea GetWindowDC en Windows SDK.

Ejemplo

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

Requisitos

encabezado: atlwin.h

Vea también

Referencia

Clase de CWindow

CWindow::GetDC

CWindow::GetDCEx

CWindow::ReleaseDC