Share via


CMDIFrameWnd::MDIMaximize

Maximizes the specified MDI child window.

void MDIMaximize( 
   CWnd* pWnd  
);

Parameters

  • pWnd
    Points to the window to maximize.

Remarks

When a child window is maximized, Windows resizes it to make its client area fill the client window. Windows places the child window's Control menu in the frame's menu bar so the user can restore or close the child window. It also adds the title of the child window to the frame-window title.

If another MDI child window is activated when the currently active MDI child window is maximized, Windows restores the currently active child and maximizes the newly activated child window.

Example

See the example for CMDIChildWnd::MDIMaximize.

Requirements

Header: afxwin.h

See Also

Reference

CMDIFrameWnd Class

Hierarchy Chart

WM_MDIMAXIMIZE

CMDIFrameWnd::MDIRestore