CWindow::DestroyWindow

销毁窗口与 CWindow 对象并将 m_hWndNULL

BOOL DestroyWindow( ) throw();

备注

在参见 Windows SDK的 DestroyWindow

但不销毁 CWindow 对象。

示例

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

要求

Header: atlwin.h

请参见

参考

CWindow选件类