Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » RibbonBar: problem disabling minimize button of the files' options menu Collapse All
Subject Author Date
Oliver Rau Mar 5, 2010 - 5:47 AM

Dear ProfUIS-Team,

we need to disable the minimize button of the ribbon files’ options menu. Therefore we switched the corresponding flag for the minimize button in all of your resource files to false. MS Visual Studio dialog tester shows the correct behaviour, but there’s no impact on the demo application itself, i.e. the attribute must have got lost somewhere else. Any idea? Thanks in advance.

Best regards,


Technical Support Mar 5, 2010 - 10:24 AM

We added a new CExtRibbonBar::m_bAllowMinimizeRibbonOptionsDialog flag and set it to true by default. We also added the following code to the end of the CExtRibbonOptionsDialog::OnInitDialog() method:

   if( ! m_pRibbonBar->m_bAllowMinimizeRibbonOptionsDialog )
                        CMenu * pSysMenu = GetSystemMenu( FALSE );
                        if( pSysMenu != NULL )
                                    ASSERT_KINDOF( CMenu, pSysMenu );
                                    pSysMenu->EnableMenuItem( SC_MINIMIZE, MF_BYCOMMAND|MF_DISABLED );
                        ModifyStyle( WS_MINIMIZEBOX, 0, SWP_FRAMECHANGED );

Now you can change the CExtRibbonBar::m_bAllowMinimizeRibbonOptionsDialog flag of your ribbon bar to false and the ribbon options dialog minimization will be disabled.