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 » Adding a button to a CExtControlBar Title Bar Collapse All
Subject Author Date
Neville Franks Jun 28, 2004 - 4:17 AM

Hi,
I’ve got CExtControlBar with a TreeCtrl inside it and I’d like to add a button to the CExtControlBar title bar. It would appear to the left of the ’Auto Hide’ button or at the very left before the title text. Is this possible and if so how?

Technical Support Jun 28, 2004 - 10:27 AM

Dear Neville,

We recommend you to use some kind of container window inside the resizable bar. This container window should keep a horizontal toolbar window at top and a tree control at bottom (i.e. the tree occupies the rest of the container space). You may find an appropriate solution in the ProfStudio example.

Of course, you may insert your own buttons into the caption of the resizable bar. Your buttons can be located both at the left and at the right side of the bar’s caption. Please take a look at the CMyTaskAreaBar class in the MDI sample application. It uses two instances of the CMyTaskAreaBar::CBarNcTaskAreaBtn class as the left and right arrow buttons. They are initialized in the CMyTaskAreaBar::OnNcAreaButtonsReinitialize virtual method.

Neville Franks Jun 28, 2004 - 2:59 PM

Great, thanks. I may end up using a container window but to save waisting the space it would need, the possibility of using a button on the caption is appealing.


Nevile