SetRangesub
Sets the minimum and maximum positions (range) for an up-down control.
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.
Syntax
SUB SetRange (BYVAL hUpDown AS HWND, BYVAL nUpper AS SHORT, BYVAL nLower AS SHORT)
Parameters
| Name | Description | |
|---|---|---|
hUpDown | Handle to the up-down control. | |
nUpper | The maximum position for the up-down control. | |
nLower | The minimum position for the up-down control. |
Description
Sets the minimum and maximum positions (range) for an up-down control.
Remarks
Neither position can be greater than the UD_MAXVAL value or less than the UD_MINVAL value. In addition, the difference between the two positions cannot exceed UD_MAXVAL.
The maximum position can be less than the minimum position. Clicking the up arrow button moves the current position closer to the maximum position, and clicking the down arrow button moves toward the minimum position.
Reference
- Include file
CUpDown.inc - Documented in Windows/WIndows Controls/CUpDown Class.md
- Topic: CUpDown control