次の方法で共有


CWindow::DestroyWindow

更新 : 2007 年 11 月

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;

必要条件

ヘッダー : atlwin.h

参照

参照

CWindow クラス

その他の技術情報

CWindow のメンバ