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 » How to check the CExtControlBar's show/hide status? Collapse All
Subject Author Date
Roongrit Charoensupkul Nov 12, 2007 - 9:36 AM

I have a check box on the ribbon bar which when user click on this check box, my property bar (CExtControlBar type) will display. When the property bar hides itself (user clicks its "X" button or user clicks pin button and the bar is hiding after some amount of time), I want to uncheck the check box. And when the property box appears (user clicks the check box, or user clicks the property bar’s tab), I want to check this check box. How can I do that?

To be simple, how to response on ON_UPDATE_COMMAND_UI of my check box, and the set value of the check box is depend on show/hide status of CExtControlBar?

Technical Support Nov 13, 2007 - 2:35 AM

There is a CControlBar::IsVisible() method that returns true if the control bar is visible. You can use this method with any kind of control bars both in MFC and Prof-UIS. You should use this method while updating the state of your check box.