BOOL DestroyWindow( );
See DestroyWindow in the Win32 SDK.
Remarks
Destroys the window associated with the CWindow object and sets m_hWnd to NULL. It does not destroy the CWindow object itself.
CWindow Overview | Class Members