Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CWnd::GetAncestor

 

Retrieves the ancestor window object of the specified window.


      CWnd* GetAncestor(
   UINT gaFlags
) const;

gaFlags

Specifies the ancestor to be retrieved. For a complete list of possible values, see GetAncestor.

If the function succeeds, the return value is a pointer to the ancestor window object. If the function fails, the return value is NULL.

This member function emulates the functionality of the function GetAncestor, as described in the Windows SDK.

Requirements

Header: afxwin.h

Show: