CWindow::DestroyWindow
销毁窗口与 CWindow 对象并将 m_hWnd 到 NULL。
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