Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


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

CWnd* GetTopLevelParent( ) const;

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.

Header: afxwin.h

© 2015 Microsoft