CWnd::GetParentFrame

Call this member function to retrieve the parent frame window. The member function searches up the parent chain until a CFrameWnd (or derived class) object is found.

Syntax

CFrameWnd* GetParentFrame( ) 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::GetDescendantWindow, CWnd::GetParent, CFrameWnd, CFrameWnd::GetActiveView