COleControl::ReleaseDC

Call this member function to release the display device context of a container of a windowless control, freeing the device context for use by other applications. The application must call ReleaseDC for each call to GetDC.

Syntax

int ReleaseDC( CDC* pDC );

At a Glance

Header file: Afxctl.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

See Also

COleControl Overview, COleControl Member Functions, Control Classes, COleControl::GetDC