Apr 15, 2011 at 9:01pm Apr 15, 2011 at 9:01pm UTC
I have a progress bar that has a PBS_MARQUEE style, but when I set the position it doesn't change, it will just stop.
Here's how I'm changing the position:
1 2 3 4
void SetBarPosition (int iNewPosition)
{
SendMessage (hLoadingBar, PBM_SETPOS, iNewPosition, 0);
}
I even tried:
SendMessage (hLoadingBar, PBM_SETMARQUEE, (WPARAM) false , (LPARAM) 0);
And it just stops the marque bar, but doesn't set the position to 0.
How would you go about changing the position of a marquee progress bar? Or just make the "scroller" invisible.
Thanks in advanced.
Last edited on Apr 15, 2011 at 9:10pm Apr 15, 2011 at 9:10pm UTC
Apr 15, 2011 at 10:11pm Apr 15, 2011 at 10:11pm UTC
Last edited on Apr 15, 2011 at 10:51pm Apr 15, 2011 at 10:51pm UTC
Apr 15, 2011 at 11:39pm Apr 15, 2011 at 11:39pm UTC
Thanks for all the information, most of it I've seen before, but the rest was helpful.
I got it to work with Get/SetWindowLong functions, by setting the styles to allow marquee, or to just be a standard progress bar. After I set it to a standard progress bar I set the position to 0.
Worked perfectly :)
Last edited on Apr 15, 2011 at 11:45pm Apr 15, 2011 at 11:45pm UTC