Share via


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

See Also

Reference

CDC Class

Hierarchy Chart

CDC::Attach

CDC::m_hDC

CDC::m_hAttribDC