CWindow::Detach

更新 : 2007 年 11 月

CWindow オブジェクトから m_hWnd をデタッチし、m_hWndNULL に設定します。

HWND Detach( ) throw();

戻り値

CWindow オブジェクトに関連付けられた HWND を返します。

使用例

//The following example attaches an HWND to the CWindow object and 
//later detaches the CWindow object from the HWND when no longer needed

CWindow myWindow;
myWindow.Attach(hWnd);

//call CWindow wrappers

//We don't need the C++ object any more, so detach it from the HWND.
myWindow.Detach(); 

必要条件

ヘッダー : atlwin.h

参照

参照

CWindow クラス

CWindow::Attach

その他の技術情報

CWindow のメンバ