Share via


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  
);

Parameters

  • pDC
    Identifies the container device context to be released.

Return Value

Nonzero if successful; otherwise 0.

Remarks

The application must call ReleaseDC for each call to GetDC.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::GetDC