![]() |
Ribbon & Dynamic updates |
Post Reply
|
| Author | |
pavold
Newbie
Joined: 14 May 2007 Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Topic: Ribbon & Dynamic updatesPosted: 11 June 2007 at 10:45am |
|
Hi,
I have implemented a dynamic hiding of commandbar buttons via UPDATE_COMMAND_UI messages and I would like to do the same for ribbon groups/tabs. Where is the best place to intercept update messages? Looking through the code, I found two candidates - CCommandBar::OnIdleUpdateCmdUI(...) - CCommandBar::OnUpdateCmdUI() The former is virtual, so I can override it in my Ribbon class, but I see that the actual update is performed in the later one. What would you suggest? Thanks, Pavol |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 June 2007 at 2:37am |
|
Hello,
Think best way is override OnIdleUpdateCmdUI. Don't forget to call base method.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |