Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CMDIFrameWnd::MDISetMenu
CMDIFrameWnd                                Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CMenu* MDISetMenu( CMenu* pFrameMenu, CMenu* pWindowMenu );
 
  Parameter     Description
 
  <pFrameMenu>  Specifies the menu of the new frame-window menu. If  NULL,
                the menu is not changed.
 
  <pWindowMenu> Specifies the menu of the new Window pop-up menu. If
                NULL, the menu is not changed.
 
  Remarks
 
  Replaces the menu of an MDI frame window, the Window pop-up menu, or
  both.
 
  After calling MDISetMenu, an application must call the DrawMenuBar
  member function to update the menu bar.
 
  If this call replaces the Window pop-up menu, MDI child-window menu
  items are removed from the previous Window menu and added to the new
  Window pop-up menu.
 
  If an MDI child window is maximized and this call replaces the MDI
  frame-window menu, the Control menu and restore controls are removed
  from the previous frame-window menu and added to the new menu.
 
  Return Value
 
  A pointer to the frame-window menu replaced by this message. The pointer
  may be temporary, and should not be stored for later use.
 
  See Also
 
  CWnd::DrawMenuBar, WM_MDISETMENU
 
 
                                     -♦-