CWindow::GetTopWindow
Возвращает дочернее окно верхнего уровня.
HWND GetTopWindow( ) const throw();
Заметки
См. раздел GetTopWindow в Windows SDK.
Пример
//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