ScrollBar_SetRange macro (windowsx.h)
Sets the range of a scroll bar.
Note This macro expands to a call to the SetScrollRange function, which is deprecated. New applications should use the SetScrollInfo function.
Syntax
void ScrollBar_SetRange(
hwndCtl,
posMin,
posMax,
fRedraw
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
posMin
Type: int
The minimum value of the scroll bar.
posMax
Type: int
The maximum value of the scroll bar.
fRedraw
Type: BOOL
TRUE to redraw the control; otherwise FALSE.
Return value
None
Remarks
For more information, see SetScrollRange.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | windowsx.h |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for