CWindow::ReleaseDC
장치 컨텍스트를 해제합니다.
int ReleaseDC(
HDC hDC
);
설명
참조 ReleaseDC 에 있는 Windows SDK.
예제
// 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;
요구 사항
헤더: atlwin.h