Re: Progress Bar changing color doesn't work
- From: "AliR \(VC++ MVP\)" <AliR@xxxxxxxxxxxxx>
- Date: Thu, 29 May 2008 10:19:27 -0500
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 ?
.
- Follow-Ups:
- Re: Progress Bar changing color doesn't work
- From: Zack
- Re: Progress Bar changing color doesn't work
- Prev by Date: Re: Unicode setting question
- Next by Date: Re: Dialog, Custom Controls and Extension DLLs...
- Previous by thread: error "Disk full while accessing <file mane>" is getting
- Next by thread: Re: Progress Bar changing color doesn't work
- Index(es):