Compartilhar via


CProgressCtrl::StepIt

Advances the current position for a progress bar control by the step increment and redraws the bar to reflect the new position.

int StepIt( );

Return Value

The previous position of the progress bar control.

Remarks

The step increment is set by the CProgressCtrl::SetStep member function.

Example

CProgressCtrl myCtrl;

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

// Advance the position to the next step.
myCtrl.StepIt();   

Requirements

Header: afxcmn.h

See Also

Reference

CProgressCtrl::SetPos

CProgressCtrl::SetRange

CProgressCtrl::SetStep