Поделиться через


CSliderCtrl::SetRange

Sets the range (minimum and maximum positions) for the slider in a slider control.

void SetRange(
   int nMin,
   int nMax,
   BOOL bRedraw = FALSE 
);

Параметры

  • nMin
    Minimum position for the slider.

  • nMax
    Maximum position for the slider.

  • bRedraw
    The redraw flag. If this parameter is TRUE, the slider is redrawn after the range is set; otherwise the slider is not redrawn.

Требования

Header: afxcmn.h

См. также

Основные понятия

CSliderCtrl Class

CSliderCtrl Members

Hierarchy Chart

CSliderCtrl::GetRange

CSliderCtrl::SetRangeMax

CSliderCtrl::SetRangeMin