CWindow::GetTopWindow

トップレベルの子ウィンドウを取得します。

HWND GetTopWindow( ) const throw();

解説

Windows SDKの GetTopWindow を参照してください。

使用例

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::GetTopWindow() to get the top-level child window

CWindow myWindow;
myWindow.Attach(hWnd);
HWND hWndFavoriteChild = myWindow.GetTopWindow();

必要条件

Header: atlwin.h

参照

関連項目

CWindow クラス

CWindow::GetWindow