CWnd::GetAncestor
Visual Studio 2010
Retrieves the ancestor window object of the specified window.
CWnd* GetAncestor( UINT gaFlags ) const;
This member function emulates the functionality of the function GetAncestor, as described in the Windows SDK.