CWnd::GetParentFrame

Call this member function to retrieve the parent frame window.

CFrameWnd* GetParentFrame( ) const;

Return Value

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

Remarks

The member function searches up the parent chain until a CFrameWnd (or derived class) object is found.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart

CWnd::GetDescendantWindow

CWnd::GetParent

CFrameWnd::GetActiveView