Compartir a través de


CWindow::DestroyWindow

Destruye la ventana asociada al objeto de CWindow y establece m_hWnd a NULL.

BOOL DestroyWindow( ) throw();

Comentarios

Vea DestroyWindow en Windows SDK.

No destruye el propio objeto de CWindow .

Ejemplo

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

Requisitos

encabezado: atlwin.h

Vea también

Referencia

Clase de CWindow