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 Tech Support » destroy ribbonbar and invalidate the screen Collapse All
Subject Author Date
Brian Horn Feb 7, 2007 - 10:31 PM


I want to write code on click event of button that will destroy ribbonbar and invalidate the screen so that ribbonbar will not appear on the screen. Can you tell me how to do this?

I tried writing code on button created on ribbonbar. When I click on that button it’s 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 it’s showing the screen without ribbonbar.

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

Technical Support Feb 8, 2007 - 8:40 AM

You can call the CFrameWnd::RecalcLayout() method to update any pending layout changes relating to any kind of control bar inside the frame. Would you modify the RibbonBar sample in order to reproduce the problem and send it to us?