Problem in changing the progress abr color
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
:cool:Problem in changing the progress abr color I want to incrementing in a progress bar in loop for(int i = 0; i < 3800; i++){ m_pb1.SetPos(i); } I just want to change the color of progress bar(i.e from blue to something else) and want to show the percentage of progress inside the progress bar. (i.e if 80% of the bar is colored then "Usage = 80%" should appear inside the progress bar). The following code is taken from a working project but it is not working in my program. m_pb1.SetTextFormat("Usage : %d%%", PBS_SHOW_PERCENT); m_pb1.SetGradientColors(RGB(206,255,157),RGB(0,130,0)); m_pb1.Invalidate(); Plz suggest me the way of doing so. Reply me soon