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