Help Center

CTrackbar.SetRangeMinmethod

Sets the minimum logical position for the slider in a trackbar.

WindowsmethodCTrackbar.incdocumented

Syntax

SUB SetRangeMin (BYVAL hTrackbar AS HWND, BYVAL lMinimum AS LONG, BYVAL fRedraw AS BOOLEAN = FALSE)

Parameters

NameDescription
hTrackbarHandle to the trackbar control.
lMinimumMinimum position for the slider.
fRedrawRedraw flag. If this parameter is TRUE, the trackbar is redrawn after the range is set. If this parameter is FALSE, the message sets the range but does not redraw the trackbar.

Description

Sets the minimum logical position for the slider in a trackbar.

Remarks

If the current slider position is greater than the new maximum, the TBM_SETRANGEMAX message sets the slider position to the new maximum value.

Reference

  • Include file CTrackbar.inc
  • Defined in AfxNova/CTrackbar.inc:345
  • Documented in Windows/WIndows Controls/CTrackbar Class.md
  • Topic: CTrackbar Class