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 » Add or remove CExtControlBar buttons Collapse All
Subject Author Date
eric guez Feb 26, 2006 - 2:26 AM

Hi,

How can i add or remove CExtControlBar buttons in the caption ?

I want to remove the autohide buttons in the CExtControlBar caption (prof-uis 252) and add some new buttons also.


Thanks

Technical Support Feb 26, 2006 - 11:33 AM

Any button in the caption of the control bar and floating toolbar is instance of a CExtBarNcAreaButton-derived class. It is initialized in the CExtControlBar::OnNcAreaButtonsReinitialize() virtual method which you can override in your CExtControlBar-derived class. Your class can create any of the default buttons and/or your custom buttons. The CMyTaskAreaBar::CBarNcTaskAreaBtn class in the MDI sample application can be used as an example of how this can be done. The Task Area bar implemented in the CMyTaskAreaBar class in this sample has custom caption buttons. You can also find custom caption buttons in the FixedSizePanels sample where the CMyResizableInFixedModeBar class uses CMyResizableInFixedModeBar::CNcBackForwardNavigationBtn buttons for navigating an Internet Explorer control inside a control bar.