CDC::Detach
Call this function to detach m_hDC (the output device context) from the CDC object and set both m_hDC and m_hAttribDC to NULL.
HDC Detach( );
Return Value
A Windows device context.
Requirements
Header: afxwin.h
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Call this function to detach m_hDC (the output device context) from the CDC object and set both m_hDC and m_hAttribDC to NULL.
HDC Detach( );
A Windows device context.
Header: afxwin.h