CWindow::DestroyWindow

Zerstört das Fenster, das dem Objekt zugeordnet ist CWindow und legt m_hWnd zu NULL fest.

BOOL DestroyWindow( ) throw();

Hinweise

Siehe DestroyWindow in Windows SDK.

Es zerstört nicht das CWindow-Objekt selbst.

Beispiel

//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;

Anforderungen

Header: atlwin.h

Siehe auch

Referenz

CWindow-Klasse