CWindow::DestroyWindow
Elimina la finestra associata all'oggetto CWindow e imposta m_hWnd a NULL.
BOOL DestroyWindow( ) throw();
Note
Vedere DestroyWindow in Windows SDK.
Non elimina l'oggetto stesso CWindow.
Esempio
//The following example attaches an HWND to the CWindow object and
//calls CWindow::DestroyWindow() to destroy the window
CWindow myWindow;
myWindow.Attach(hWndChild);
//call the CWindow wrappers
myWindow.DestroyWindow();
hWndChild = NULL;
Requisiti
Header: atlwin.h