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 » OnUpdateCmdUI Collapse All
Subject Author Date
himanshu joshi Feb 21, 2007 - 5:24 AM


I have implemented ribbon gallery control inside ribbon bar same as shown in ribbonbar example Home-> Style Tab. which contains some buttons.
On clicking of each button i am doing certain functionality.

Could you tell how will i get the functionality of OnUpdate
e.g a function is declared as below
void Class1::OnUpdateToolsVerifyBeamOrientation(CCmdUI* pCmdUI)

If i am using the button without gallery control it calls onupdate when i click on ribbon tab which contains that button
but if the same button is inside gallery it is not calling onupdate .

Could you suggest the solution

Technical Support Feb 22, 2007 - 4:17 AM

The ribbon galleries are similar to the list box common control and they are not controlled by the MFC’s command updating mechanism. You should access the ribbon gallery control directly and modify its items when needed.