CDC::Detach
This method detaches m_hDC, the output device context, from the CDC object and sets m_hDC and m_hAttribDC to NULL.
HDC Detach( );
Return Value
A Windows device context.
Requirements
** Windows CE versions:** 1.0 and later
Header file: Declared in Afxwin.h
Platform: H/PC Pro, Palm-size PC, Pocket PC