Export (0) Print
Expand All
Expand Minimize

CWnd::GetAncestor

Retrieves the ancestor window object of the specified window.

CWnd* GetAncestor(
   UINT gaFlags
) const;

Parameter

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

Return Value

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

Remarks

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

See Also

CWnd Overview | Class Members | Hierarchy Chart

Show:
© 2014 Microsoft