Call this member function to retrieve the parent frame window.
CFrameWnd* GetParentFrame( ) const;
A pointer to a frame window if successful; otherwise NULL.
The member function searches up the parent chain until a CFrameWnd (or derived class) object is found.
Header: afxwin.h