CDC::Detach 

HDCDetach();

Return Value

A Windows device context.

Remarks

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.

CDC OverviewClass MembersHierarchy Chart

See Also   CDC::Attach, CDC::m_hDC, CDC::m_hAttribDC