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.
Subject |
Author |
Date |
|
Ulrich Heinicke
|
Dec 4, 2007 - 9:16 AM
|
How can i hide the option button in the ribbon file menu?
Thanks Ulrich
|
|
Technical Support
|
Dec 4, 2007 - 1:08 PM
|
In your project, there should be some lines instantiating the CExtRibbonNodeFile ribbon command tree node for the File button. This code should be similar to the CMainFrame::_InitRibbon_FileMenu() method in the RibbonBar sample where the CExtRibbonNodeFile object is instantiated and initialized at the beginning of this method. To remove the Options button from the ribbon file menu, you should remove the TPMX_RIBBON_OPTIONS_BUTTON flag from the CExtRibbonNpde::m_nTpmxAdditionalFlags property of the CExtRibbonNodeFile object: CExtRibbonNodeFile * pRibbonNodeFile = new CExtRibbonNodeFile;
pRibbonNodeFile->CmdKeyTipSet( new CExtCustomizeCmdKeyTip( __EXT_MFC_SAFE_TCHAR( _T(’F’) ) ), false );
. . .
pRibbonNodeFile->m_nTpmxAdditionalFlags &= ~(TPMX_RIBBON_OPTIONS_BUTTON);
|
|