- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsHi,
Please tell me how to change the Application Title Bar Color using SetSysColors Api.
and Give me all the constant in SetsysColors.
Thanks
Raju
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ced888Posted on 2007-01-18 at 18:13:25ID: 18346527
Try this code.
ECAPTION,R GB(255,0,0 ))
Declare the external API command
FUNCTION ulong SetSysColors(integer i_changes, integer i_syscolor, integer i_ColorValues) LIBRARY "user32.dll"
Then declare the CONSTANTs:
CONSTANT integer COLOR_SCROLLBAR = 0 //The Scrollbar colour
CONSTANT integer COLOR_BACKGROUND = 1 //Colour of the background with no wallpaper
CONSTANT integer COLOR_ACTIVECAPTION = 2 //Caption of Active Window
CONSTANT integer COLOR_INACTIVECAPTION = 3 //Caption of Inactive window
CONSTANT integer COLOR_MENU = 4 //Menu
CONSTANT integer COLOR_WINDOW = 5 //Windows background
CONSTANT integer COLOR_WINDOWFRAME = 6 //Window frame
CONSTANT integer COLOR_MENUTEXT = 7 //Window Text
CONSTANT integer COLOR_WINDOWTEXT = 8 //3D dark shadow (Win95)
CONSTANT integer COLOR_CAPTIONTEXT = 9 //Text in window caption
CONSTANT integer COLOR_ACTIVEBORDER = 10 //Border of active window
CONSTANT integer COLOR_INACTIVEBORDER = 11 //Border of inactive window
CONSTANT integer COLOR_APPWORKSPACE = 12 //Background of MDI desktop
CONSTANT integer COLOR_HIGHLIGHT = 13 //Selected item background
CONSTANT integer COLOR_HIGHLIGHTTEXT = 14 //Selected menu item
CONSTANT integer COLOR_BTNFACE = 15 //Button
CONSTANT integer COLOR_BTNSHADOW = 16 //3D shading of button
CONSTANT integer COLOR_GRAYTEXT = 17 //Grey text, of zero if dithering is used.
CONSTANT integer COLOR_BTNTEXT = 18 //Button text
CONSTANT integer COLOR_INACTIVECAPTIONTEXT = 19 //Text of inactive window
CONSTANT integer COLOR_BTNHIGHLIGHT = 20 //3D highlight of button
CONSTANT integer COLOR_2NDACTIVECAPTION = 27 //Win98 only: 2nd active window color
CONSTANT integer COLOR_2NDINACTIVECAPTION = 28 //Win98 only: 2nd inactive window color
Then call your SetSysColors
Example:
SetSysColors(1,COLOR_ACTIV