This method detaches m_hWnd from the CWindow object and sets m_hWnd to NULL.
At a Glance
Syntax
BOOL Detach( );
See Also
CWindow::Attach