Udostępnij za pośrednictwem


CMDIChildWnd::MDIMaximize

Call this member function to maximize an MDI child window.

void MDIMaximize( );

Remarks

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

Example

// CMainFrame::OnMaximizeWindow() is a menu command handler for
// CMainFrame class, which in turn is a CMDIFrameWnd-derived 
// class. It maximizes the current active MDI child window.
void CMainFrame::OnMaximizeWindow() 
{
   BOOL maximized;
   CMDIChildWnd* child = MDIGetActive(&maximized);
   if (child && (!maximized))
      child->MDIMaximize();   // or MDIMaximize(child); 
}

Requirements

Header: afxwin.h

See Also

Reference

CMDIChildWnd Class

Hierarchy Chart

WM_MDIMAXIMIZE

CMDIChildWnd::MDIRestore

Other Resources

CMDIChildWnd Members