Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
O.P. [?] Dynamic Range
I'm trying to make a progress bar, but I need the maximum range value to update every now and then, without re-writing the XML file and preferably without closing the window at all. I'm assuming there must be some sort of API to take care of this?
Posts: 1233 Reputation: 31
35 / /
Joined: Oct 2004
RE: [?] Dynamic Range
A cheaper (and simpler) work-around: just make the max value a large number and change the incremental amounts I believe that's what most applications of progress bars do anyway
This post was edited on 05-23-2008 at 03:21 AM by Volv.
quote:Originally posted by SpunkyLoveMuff
I'm trying to make a progress bar, but I need the maximum range value to update every now and then, without re-writing the XML file and preferably without closing the window at all. I'm assuming there must be some sort of API to take care of this?
Yes, you can do it by sending some messages to your Progressbar control ;)
quote:Originally posted by Progress Bar Control Reference @ MSDN PBM_SETRANGE Message
Sets the minimum and maximum values for a progress bar and redraws the bar to reflect the new range.
PBM_SETPOS Message
Sets the current position for a progress bar and redraws the bar to reflect the new position.
code:var PBM_SETRANGE = 0x0401;
var PBM_SETPOS = 0x0402;