Partager via


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

Concepts

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::GetDescendantWindow

CWnd::GetParent

CFrameWnd::GetActiveView