This documentation is archived and is not being maintained.


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  


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