CWnd::GetParentFrame

CFrameWnd*GetParentFrame()const;

Return Value

A pointer to a frame window if successful; otherwise NULL.

Remarks

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.

CWnd OverviewClass MembersHierarchy Chart

See Also   CWnd::GetDescendantWindow, CWnd::GetParent, CFrameWnd::GetActiveView