Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » Ribbonbar Destroy problem Collapse All
Subject Author Date
Shailesh Nikam Feb 5, 2007 - 11:50 PM

Hi,
I want to write code on click event of button that will destroy ribbonbar and hides complete ribbonbar from the screen immediately.

Can you tell me how to do this. I tried writing code on button created on ribbonbar. When I click on that button its destroying ribbonbar but still its appearing on the screen. I think its not invalidating the screen. If I minimize the screen and again opens the same then its hiding the ribbonbar.

Can you tell me how to invalidate screen so that destroy and hiding of ribbonbar change will appear immediately on the screen.

Regards,
Shailesh

Technical Support Feb 8, 2007 - 3:30 AM

You should use a simple command button and add a command message handler for it. The ribbon bar is kind of MFC control bar. This means you can show/hide it using the CFrameWnd::ShowControlBar() method.