There are three ways to change the current position of a progress control (CProgressCtrl).
To change the position by a preset amount
Note StepIt will cause the position to wrap. For example, given a range of 1 – 100, a step of 20, and a position of 90, StepIt will set the position to 10.
To change the position by an arbitrary amount
Note OffsetPos, unlike StepIt, will not wrap the position. The new position is adjusted to remain within the range.
To change the position to a specific value
Typically, the progress control is used solely for output. To get the current position without specifying a new value, use GetPos.