Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 Tech Support » Please teach a method to perform non-display of MDI-button Collapse All
Subject Author Date
tera tera Dec 24, 2009 - 1:08 AM

Hello.


I want to always make this button non-display


tera tera Dec 24, 2009 - 5:29 PM

Hello.


Because it is RibbonTypeMenu, this CExtMenuControlBar-_InstallMdiDocButtons is not called.

It is necessary to revise other points?

Technical Support Dec 25, 2009 - 9:40 AM

Just do not insert the CExtRibbonNodeMdiRightButtons node into the right buttons collection.

Technical Support Dec 24, 2009 - 7:49 AM

This button is an CExtBarMdiRightButton object. Please override <code>CExtMenuControlBar::_InstallMdiDocButtons()<code> internal virtual method, copy the source code from the original method and comment the following part of it:

               if( pRightTBB == NULL )
                        {
                                    pRightTBB =
                                                new CExtBarMdiRightButton(
                                                            this,
                                                            m_nMdiDocButtonCmdID
                                                            );
                                    ASSERT_VALID( pRightTBB );
                                    m_buttons.InsertAt( nRightIndex + 1, pRightTBB );
                                    bRetVal = TRUE;
                        } // if( pRightTBB == NULL )