CWnd::GetTopLevelFrame

Call this member function to retrieve the window's top level frame window, if any. If CWnd has no attached window, or its top-level parent is not a CFrameWnd-derived object, this function returns NULL.

Syntax

CFrameWnd* GetTopLevelFrame( ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::GetTopLevelOwner, CWnd::GetTopLevelParent, CFrameWnd