|
-
July 8th, 2005, 03:40 AM
#1
Title Bar Color
Can any one tell me how to change the title bar color??????????
-
July 8th, 2005, 03:58 AM
#2
Re: Title Bar Color
if you want to change the title bar of all the windows in the system you should use the ::SetSysColors(..) api with COLOR_ACTIVECAPTION parameter and the desired color
here is the link
http://msdn.microsoft.com/library/de...tsyscolors.asp
if you want to change color caption only for your window then you have to intercept the WM_NCPAINT and in there paint the title bar yourself..
if i helped dont forget to rate :-)
Cheers
-
July 8th, 2005, 06:03 AM
#3
Re: Title Bar Color
This article http://www.codeproject.com/gdi/customcaption.asp
shows how to change colours / caption styles although it may be slightly outdated for XP
Please use meaningful question titles - "Help me" does not let me know whether I can help with your question, and I am unlikely to bother reading it.
Please remember to rate useful answers. It lets us know when a question has been answered.
-
July 8th, 2005, 08:02 AM
#4
Re: Title Bar Color
I tried with COLOR_ACTIVECAPTION option. it is not working. please give me some more details
-
July 8th, 2005, 10:14 AM
#5
Re: Title Bar Color
its sure working mate 
Code:
COLORREF NewColor = RGB(255, 0, 0);
int flag = COLOR_ACTIVECAPTION;
::SetSysColors(1, &flag, &NewColor);
if i helped dont forget to rate :-)
Cheers
-
July 9th, 2005, 12:21 AM
#6
Re: Title Bar Color
Now it is working. thanks for golanshahar and all the replies.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|