5. Setting the Scroll Bar Position
You can use SetScrollPos to set a new thumb position within the scroll bar range:
SetScrollPos (hwnd, iBar, iPos, bRedraw);
hwnd: |
Handle to the window |
iBar: |
Either SB_VERT or SB_HORZ |
iPos: |
The new thumb position |
bRedraw: |
true, to redraw the scroll bar based on new range, or false |
|