Export (0) Print
Expand All
Expand Minimize


Call this member function to retrieve the window's top-level parent.

CWnd* GetTopLevelParent( ) const;

Return Value

Identifies the top-level parent window of the window.

The returned pointer may be temporary and should not be stored for later use.


GetTopLevelParent is similar to GetTopLevelFrame and GetTopLevelOwner; however, it ignores the value set as the current owner window.

See Also

CWnd Overview | Class Members | Hierarchy Chart | CWnd::GetTopLevelOwner | CWnd::GetTopLevelFrame | CWnd::GetOwner | CWnd::SetOwner

© 2014 Microsoft