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