CProgressCtrl::SetStep
Specifies the step increment for a progress bar control.
int SetStep(
int nStep
);
Параметры
- nStep
New step increment.
Возвращаемое значение
The previous step increment.
Заметки
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.
Пример
CProgressCtrl myCtrl;
// Create a child progress control.
myCtrl.Create(WS_CHILD|WS_VISIBLE, CRect(10,10,200,30), pParentWnd,
IDC_PROGRESSCTRL);
// Set the size to be 1/10 of the total range.
int nLower, nUpper;
myCtrl.GetRange(nLower, nUpper);
myCtrl.SetStep((nUpper-nLower)/10);
Требования
Header: afxcmn.h