Compartilhar via


CWindow::DestroyWindow

Destrói a janela associada a CWindow objeto e conjuntos m_hWnd to NULO.

BOOL DestroyWindow( ) throw();

Comentários

See DestroyWindow in the Windows SDK.

Não destrói o CWindow objeto propriamente dito.

Exemplo

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

Cabeçalho: atlwin.h

Consulte também

Referência

Classe CWindow

Outros recursos

CWindow membros