Scaling Progress Steps :: MFC
Hi.
I would like to scale a progress bar for smaller numbers. For example:
x = 0
y = 999999999
I would lke to update the progress bar such that you will see changes, i.e. progress even though the x is still small. In other words, x = 1000 will update the progress bar just a slightly even though it is not 1% of y.
Is that possible and how do you scale the progress bar for such a slight change?
Thanks,
Kuphryn
in dialog init, SetRange(0, 999999999); and SetStep(1);
to update progress by 1, call StepIt();
to update progress by 1, call StepIt();
Okay. Thanks.
I have been using SetPos() even when in a range between 0 and 100. What is the difference between StepIt() and SetPos()?
Kuphryn
[edited by - kuphryn on November 21, 2002 9:43:59 PM]
I have been using SetPos() even when in a range between 0 and 100. What is the difference between StepIt() and SetPos()?
Kuphryn
[edited by - kuphryn on November 21, 2002 9:43:59 PM]
StepIt() is relative to the current position, e.g., pos += stepsize; SetPos() is absolute, e.g., pos = nPos;
SetPos() is typically used if you calculate a percentage of progress whereas StepIt() may be used if you update progress incrementally, e.g., "# of files processed of total files to be processed."
SetPos() is typically used if you calculate a percentage of progress whereas StepIt() may be used if you update progress incrementally, e.g., "# of files processed of total files to be processed."
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement