CProgressCtrl::SetStep

int SetStep( int nStep );

Return Value

The previous step increment.

Parameters

nStep

New step increment.

Remarks

Specifies the step increment for a progress bar control. The step increment is the amount by which a call to CProgressCtrl::StepIt increases the progress bar’s current position.

The default step increment is 10.

Example

CProgressCtrl myCtrl;

// Create a child progress control.
myCtrl.Create(WS_CHILD|WS_VISIBLE, CRect(10,10,200,30), pParentWnd, 1);

// Set the size to be 1/10 of the total range.
int nLower, nUpper;
myCtrl.GetRange( nLower, nUpper );
myCtrl.SetStep( (nUpper-nLower)/10 );

CProgressCtrl OverviewClass MembersHierarchy Chart

See Also   CProgressCtrl::OffsetPos, CProgressCtrl::SetPos, CProgressCtrl::StepIt