Sets the minimum and maximum value range for a trackbar.
Takes trackbar (Int), rangeMin (Int), and rangeMax (Int).
Returns 1 on success, 0 if trackbar not found.
BGI GUI
Parameters & Returns
Parameters
trackbarInt
rangeMinInt
rangeMaxInt
Returns
Int
Quick Summary
Sets the minimum and maximum value range for a trackbar.
Takes trackbar (Int), rangeMin (Int), and rangeMax (Int).
Returns 1 on success, 0 if trackbar not found.
Technical Exegesis...
Sets the minimum and maximum value range for a trackbar control. Searches gizmoMap for the trackbar ID. Sends TBM_SETRANGE message with TRUE (redraw immediately) and MAKELONG(rangeMin, rangeMax) packing both values into LPARAM. Returns 1 on success, 0 if trackbar not found.
This function defines the value range for the trackbar slider. rangeMin is the minimum value (leftmost/bottom position), rangeMax is the maximum value (rightmost/top position). MAKELONG packs min in low word, max in high word.
Sets the minimum and maximum value range for a trackbar control. Searches gizmoMap for the trackbar ID. Sends TBM_SETRANGE message with TRUE (redraw immediately) and MAKELONG(rangeMin, rangeMax) packing both values into LPARAM. Returns 1 on success, 0 if trackbar not found.
This function defines the value range for the trackbar slider. rangeMin is the minimum value (leftmost/bottom position), rangeMax is the maximum value (rightmost/top position). MAKELONG packs min in low word, max in high word. TRUE parameter causes immediate redraw. Default range is typically 0-100 if not set. Use before or after creating trackbar to define meaningful ranges (0-255 for RGB, 0-100 for percentage, -50 to 50 for balance, etc.). Current position value is clamped to new range if outside bounds.