Title Bar/Caption Bar Color

U

Ursula

Is there a way to change the default color of a windows
form title bar/caption bar from within an application
(without changing the user's preferences)?
I do know how to remove the title bar along with a lot of
other functionalities. It would be helpful to get away
from this bright blue color that restricts all color
schemes.
I have tried:
the systemcolors class
ActiveCaption (a read-only property)

I would be grateful for any help,
Thanks, Ursula
 
K

Klaus H. Probst

Not without intercepting NC_* (non-client) messages and drawing the caption
bar yourself. Intercepting the messages is easy - all you need to do is
override DefWindowProc on the form. The problem is the drawing.

There are many samples of how to do this from C++ and VB. I'd probably start
by looking at those and trying to port them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top