Changing Caption Color
Ok, I''ve been having some problems changing the color of the caption on window. I used the SetSysColor() function and it freakin changed the caption color of all my windows. Does anyone know how to change the color of the caption of a window and not all the windows of WindowsXP/98/whatever?
Here''s the code I used
WM_CREATE:
int elements[1]={COLOR_ACTIVECAPTION};
DWORD aColors[1];
aColors[0] = RGB(0xFF, 0xFF, 0xFF); // white <--test
SetSysColors(1,elements,aColors);
return 0;
I tried sending a message with WM_SETTINGCHANGE but nothing happened.
Languages: C/C++ C# JavaAPIs: Win32 OpenGL DirectXWeb: javascript Perl JSP PHP-MySQL Oracle Database Programming</span><a href='http://www.ethereal-studios.com'>http://www.ethereal-studios.com</a></a>
Well guys, I may not need help after all, I just got Programming Windows Fifth Edition by Charles Petzold for Christmas. Man, it's awesome! My mom and dad said it was the last copy left at Barnes and Nobles. :-D
Marry Christmas Everyone!
Edited by - DJ_GL on December 25, 2001 9:42:18 AM
Marry Christmas Everyone!
Edited by - DJ_GL on December 25, 2001 9:42:18 AM
Languages: C/C++ C# JavaAPIs: Win32 OpenGL DirectXWeb: javascript Perl JSP PHP-MySQL Oracle Database Programming</span><a href='http://www.ethereal-studios.com'>http://www.ethereal-studios.com</a></a>
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement