Compartilhar via


CWindow::ReleaseDC

Lança um contexto de dispositivo.

int ReleaseDC(
   HDC hDC 
);

Comentários

See ReleaseDC in the Windows SDK.

Exemplo

// The following example attaches a HWND to the CWindow object,
// calls CWindow::GetDC to retrieve the DC of the client
// area of the window wrapped by CWindow Object, and calls
// CWindow::ReleaseDC to release the DC. 

CWindow myWindow;
myWindow.Attach(hWnd);   
HDC hDC = myWindow.GetDC();

// Use the DC

myWindow.ReleaseDC(hDC);
hDC = NULL;

Requisitos

Cabeçalho: atlwin.h

Consulte também

Referência

Classe CWindow

CWindow::GetDC

CWindow::GetDCEx

CWindow::GetWindowDC

Outros recursos

CWindow membros