int OffsetPos( int nPos );
Return Value
The previous position of the progress bar control.
Parameters
nPos
Amount to advance the position.
Remarks
Advances the progress bar control’s current position by the increment specified by nPos and redraws the bar to reflect the new position.
Example
CProgressCtrl myCtrl;
// Create a child progress control.
myCtrl.Create(WS_CHILD|WS_VISIBLE, CRect(10,10,200,30), pParentWnd, 1);
// Offset the position by one-fourth of the total range.
int nLower, nUpper;
myCtrl.GetRange( nLower, nUpper );
myCtrl.OffsetPos( (nUpper-nLower)/4 );
CProgressCtrl Overview | Class Members | Hierarchy Chart
See Also CProgressCtrl::SetPos, CProgressCtrl::SetRange, CProgressCtrl::StepIt