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


CWnd::ReleaseDC

Releases a device context, freeing it for use by other applications.

int ReleaseDC(
   CDC* pDC 
);

Параметры

  • pDC
    Identifies the device context to be released.

Возвращаемое значение

Nonzero if successful; otherwise 0.

Заметки

The effect of the ReleaseDC member function depends on the device-context type.

The application must call the ReleaseDC member function for each call to the GetWindowDC member function and for each call to the GetDC member function.

Требования

Header: afxwin.h

См. также

Основные понятия

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::GetDC

CWnd::GetWindowDC

ReleaseDC