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 » CExtRibbonPage Collapse All
Subject Author Date
DaeYeon Joo May 1, 2008 - 9:03 PM

Hi, I have questions!

1. Pushed button

 I am using the CExtRibbonPage in dialog based application.

But I don’t know how to make a pushed button on CExtRibbonPage’s button.

Like as below image..

2. Color Button

I am insert a color button to CExtRibbonPage.

The code that I use in my program below as bottom.

But the label about the color button do not display on icon’s right side.

(icon size: 16x16, the button set small icon)

Please how to show the label?



CExtRibbonNode * pNodeFontCharColor  =  new CExtRibbonNodeToolButton( ID_FONT_CHAR_COLOR );


parikshit nangre May 9, 2008 - 11:55 PM


this is parikshit from india. have you implemented CExtRibbonbar in a dialog based application. i am trying that but facing some problems . if you have done it please mail me as soon as possible. can i get your email id.

Technical Support May 10, 2008 - 12:19 PM

You should simply create a ribbon bar as a child of the dialog window. You can use a custom control on the dialog form and subclass it or you can create a ribbon in the OnInitDialog() virtual method.

Please note ribbon bar is kind of MFC control bar. This means your dialog class should invoke CWnd::RepositionBars( 0, 0xFFFF, 0 ); at the end of the OnInitDialog() method and in the OnSize() method.

Technical Support May 2, 2008 - 11:01 AM

The CExtRibbonPage and CExtRibbonBar controls are extended versions of the toolbar control (CExtToolControlBar). Their buttons are fully controlled by MFC’s command updating mechanism. So you should add the command updating methods for your ribbon page’s buttons and use the pCmdUI->SetCheck() or pCmdUI->SetRadio() code for controlling the checked state of buttons.