HWND GetTopWindow( ) const;
See GetTopWindow in the Win32 SDK.
Remarks
Retrieves the top-level child window.
Example
//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(hWndFoo);
HWND hWndFavoriteChild = myWindow.GetTopWindow();
CWindow Overview | Class Members
See Also CWindow::GetWindow