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


COleControl::ReleaseDC

Releases the display device context of a container of a windowless control, freeing the device context for use by other applications.

int ReleaseDC(
   CDC* pDC 
);

Параметры

  • pDC
    Identifies the container device context to be released.

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

Nonzero if successful; otherwise 0.

Заметки

The application must call ReleaseDC for each call to GetDC.

Требования

Header: afxctl.h

См. также

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

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::GetDC