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 change CExtControlBar titlebar(caption bar) color (focus and diable) ? Collapse All
Subject Author Date
Eun Hyang Im Sep 16, 2008 - 9:08 PM

 


I want to change titlebar(caption) color (Normal... orange color... I don’t like this color) in CExtControlBar.


How to change, please ?


 


 


 

Technical Support Sep 17, 2008 - 5:55 AM

You should re-paint the caption of resizable bar. The TabbedBars sample application demonstrates how to do this. You can see resizable bars with custom painted captions and borders there. The CMainFrame::OnMsgUseCustomNcArea method in this sample application handles the CExtControlBar::g_nMsgCustomNcAreaQuery registered message which allows to re-compute non-client area of Prof-UIS control bar and/or repaint it.

Offer Har Sep 17, 2008 - 10:40 AM

I would like to do the same... Isn’t there a simple place I can just change the RGB of the title? I don’t want to change the paint procedure, just want another color.

Technical Support Sep 17, 2008 - 12:24 PM

There are no colors of UI items. In some themes any part of any control has a solid color. In some other themes parts are painted using horizontal or vertical gradients with two or more color points. In some other themes UI parts are painted using stretched or tiled bitmaps. So, generally there are no colors defined for controls and their parts. If you need something differently looking, then you should paint it.

Offer Har Sep 17, 2008 - 1:40 PM

We are talking about one specific theme - the CExtPaintManagerOffice2007_Black. In this theme, the focused bar’s caption is orange. Can you point us to what method from the methods you mentioned above is used to implement it? I can change a bitmap or whatever, because we absolutly don’t want the orange caption, sow e don’t care changing the bitmap in the Prof-UIS resource to achieve that goal.