CMFCRibbonBar::SetMaximizeMode
Visual Studio 2012
Adjusts the ribbon bar when the window size of a multiple-document interface (MDI) child window enters or leaves the maximized state.
void SetMaximizeMode( BOOL bMax, CWnd* pWnd = NULL );