Print Page | Close Window

Ribbon & Dynamic updates

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7357
Printed Date: 03 March 2025 at 1:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon & Dynamic updates
Posted By: pavold
Subject: Ribbon & Dynamic updates
Date 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



Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net