BCGControlBar Pro for MFC
virtual void CBCGPMenuBar::SetMaximizeMode ( BOOL  bMax,
CWnd *  pWnd = NULL,
BOOL  bRecalcLayout = TRUE 
)
virtual

Sets the menu bar object's maximize mode.

When an MDI child window is maximized, a menu bar that is attached to the MDI main frame window should display the system menu and minimize, maximize and close buttons (system buttons).

The SetMaximizeMode function is called by the framework when some MDI child window changes its show mode.

If bMax is TRUE, than the menu bar objects changes its mode, e.g shows the system buttons and takes the system menu from the window specified by pWnd parameter.

If bMax is FALSE, or pWnd is NULL the menu bar object returns to its regular state.

Parameters
bMaxSpecifies the mode.
pWndA pointer to window.
bRecalcLayoutSpecifies whether the menu bar's layout should be recalculated immediately.