Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a question.

I use the following code in mainframe.cpp to change the background color of status bar.
m_wndStatusBar.GetStatusBarCtrl().SetBkColor(RGB(255,0,0));

When the project run in XP system,it works.But when turn to Win7,it donesn't work, the status bar do not change the background color. Why?And ,how to solve?

Thanks .
Posted

1 solution

you need to trigger a repaint of the control/background:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms648055(v=vs.85).aspx[^]
 
Share this answer
 

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