CDC::ReleaseAttribDC
Call this member function to set m_hAttribDC to NULL.
virtual void ReleaseAttribDC( );
Remarks
This does not cause a Detach to occur. Only the output device context is attached to the CDC object, and only it can be detached.
Requirements
Header: afxwin.h