Re: Progress Bar changing color doesn't work

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You must be using XP themes. You can't use PBM_SETBARCOLOR (which is was
SetBarColor does) with XP themes.

http://msdn.microsoft.com/en-us/library/bb760838(VS.85).aspx


AliR.


"Zack" <zackm@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:714DF9FA-67BD-4BC5-A986-15E4B00B87A5@xxxxxxxxxxxxxxxx
I cretaed dialog bar with the commands:

CProgressCtrl myCtrl;

myCtrl.Create(WS_CHILD|WS_VISIBLE, CRect(160,275,280,300), this,1);
// Set the range to be 0 to 100.
myCtrl.SetRange(0, 100);
// and then starting to change the position in dialog progress bar
myCtrl.SetPos(0);
myCtrl.SetPos(10);
// and it is working fine

//but when it come close to 90 position , i want to change the color, so i
added this code:

myCtrl.SetBarColor(RGB(255,255,0));

and it doesn't work, any idea why ?


.