Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon & Dynamic updates
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon & Dynamic updates

 Post Reply Post Reply
Author
Message
pavold View Drop Down
Newbie
Newbie


Joined: 14 May 2007
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote pavold Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon & Dynamic updates
    Posted: 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.