Archived

This topic is now archived and is closed to further replies.

Scaling Progress Steps :: MFC

This topic is 5500 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
in dialog init, SetRange(0, 999999999); and SetStep(1);
to update progress by 1, call StepIt();

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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."

Share this post


Link to post
Share on other sites