CDC::ReleaseOutputDC
Call this member function to set the m_hDC member to NULL.
virtual void ReleaseOutputDC( );
Remarks
This member function cannot be called when the output device context is attached to the CDC object. Use the Detach member function to detach the output device context.
Requirements
Header: afxwin.h