CTrackbar.SetRangeMaxmethod
Sets the maximum logical position for the slider in a trackbar.
Syntax
SUB SetRangeMax (BYVAL hTrackbar AS HWND, BYVAL lMaximum AS LONG, BYVAL fRedraw AS BOOLEAN = FALSE)
Parameters
| Name | Description | |
|---|---|---|
hTrackbar | Handle to the trackbar control. | |
lMaximum | Maximum position for the slider. | |
fRedraw | Redraw 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