Click here to Skip to main content
15,902,893 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey there, I am creating a dialog based application with status bar in the Dialog. I want to change the background color of the status bar.
I have used the following code but it is not working-


Please help.
Thanks in Advance

you should use the api of status and call handle of status bar window and then set color for it
Share this answer
use CMetaFileDC to change the color on status bar.

Using metafile dc u can draw and paint client and non-client area.
Share this answer
Member 8919952 11-Oct-13 5:09am    
Well thanks, I will try that. But I saw a strange thing that my code i.e. GetStatusBarCtrl().SetBkColor(RGB(0,0,0)); is working for Windows Classic, but not for Windows XP, do anyone have any idea why it is so?
Thanks a lot !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900