CWnd::GetTopLevelFrame

Call this member function to retrieve the window's top level frame window, if any.

CFrameWnd* GetTopLevelFrame( ) const;

Return Value

Identifies the top-level frame window of the window.

The returned pointer may be temporary and should not be stored for later use.

Remarks

If CWnd has no attached window, or its top-level parent is not a CFrameWnd-derived object, this function returns NULL.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart

CWnd::GetTopLevelOwner

CWnd::GetTopLevelParent