Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Call this function to return the MDI parent frame.

CMDIFrameWnd* GetMDIFrame( );

Return Value

A pointer to the MDI parent frame window.


The frame returned is two parents removed from the CMDIChildWnd and is the parent of the window of type MDICLIENT that manages the CMDIChildWnd object. Call the GetParent member function to return the CMDIChildWnd object's immediate MDICLIENT parent as a temporary CWnd pointer.


See the example for CMDIFrameWnd::MDISetMenu.

See Also

CMDIChildWnd Overview | Class Members | Hierarchy Chart | CWnd::GetParent

© 2015 Microsoft