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

CMDIChildWnd::GetMDIFrame

Call this function to return the MDI parent frame.

CMDIFrameWnd* GetMDIFrame( );

Return Value

A pointer to the MDI parent frame window.

Remarks

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.

Example

See the example for CMDIFrameWnd::MDISetMenu.

See Also

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

Show:
© 2015 Microsoft