Can any one tell me how to change the title bar color??????????
Printable View
Can any one tell me how to change the 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
This article http://www.codeproject.com/gdi/customcaption.asp
shows how to change colours / caption styles although it may be slightly outdated for XP
I tried with COLOR_ACTIVECAPTION option. it is not working. please give me some more details
its sure working mate :)
if i helped dont forget to rate :-)Code:COLORREF NewColor = RGB(255, 0, 0);
int flag = COLOR_ACTIVECAPTION;
::SetSysColors(1, &flag, &NewColor);
Cheers
Now it is working. thanks for golanshahar and all the replies.