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 |
|
himanshu joshi
|
Dec 6, 2006 - 2:24 AM
|
hi
i m using ribbon control for the menus in MDI application. When my child frame is created i want to show different menu using ribbon control and hide the first original one so that only new one is shown How can we do that?
Another thing is ,,Can it possible to extend my menu at run time means inserting addition menus in ribbon at run time
Thanks in advance
|
|
Technical Support
|
Dec 7, 2006 - 1:43 PM
|
You can handle the WM_MDIACTIVATE message and completely re-initialize the ribbon using the CExtRibbonBar::SetButtons() method. This method allows you to set a command tree constructed for a particular MDI child frame window. But we think this idea is not compatible with the design of the ribbon bar which is mostly persistent in MS Office applications. Please read this FAQ article, which may be helpful:
How to insert menu items at run time?
|
|