CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the Colour of the Form's Title Bar [BCB3]
On Thu, 8 Oct 1998, Peter Harpas wrote:
> I am trying to change the color of the forms title bar from whatever to red.
> I thought this would be easy but...
Well there was a string of posts just a couple weeks ago about changing
the color of a progress bar so if you still have those you might want to
go back and look at them as the methods will be similar. The title bar
colors (as well as menu colors and a lot of other things) are not handled
directly by BCB but are actually windows system colors. That way when
you change your desktop settings (i.e. pick a new theme) all of your
windows will use the same color for their title bars etc...
What I'm getting at is that it is fairly easy to change the system color
which is used for rendering title bars. However, this will change the
color for the title bars on all windows, not just the form you desire.
The functions that do this are GetSysColor() and SetSysColors in the
win32 API. If there is a way to change just a single window's titlebar
color it's beyond me ;)
Daniel Hallmark
W Komornicki's Home Page |
Main Index |
Thread Index