Help Center

CTrackbar.SetRangeMaxmethod

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

WindowsmethodCTrackbar.incdocumented

Syntax

SUB SetRangeMax (BYVAL hTrackbar AS HWND, BYVAL lMaximum AS LONG, BYVAL fRedraw AS BOOLEAN = FALSE)

Parameters

NameDescription
hTrackbarHandle to the trackbar control.
lMaximumMaximum 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 maximum 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:337
  • Documented in Windows/WIndows Controls/CTrackbar Class.md
  • Topic: CTrackbar Class