SetScrollPos (USER32.@)
INT SetScrollPos ( HWND hwnd, INT nBar, INT nPos, BOOL bRedraw )
Sets the current position of the scroll thumb.
hwnd | [In] | Handle of window with scrollbar(s). |
nBar | [In] | One of SB_HORZ, SB_VERT, or SB_CTL. |
nPos | [In] | New value. |
bRedraw | [In] | Should scrollbar be redrawn afterwards?. |
Success: Scrollbar position
Failure: 0.
Note the ambiguity when 0 is returned. Use GetLastError to make sure there was an error (and to know which one).
Defined in "commctrl.h".
Implemented in "dlls/user32/scroll.c". source.winehq.org/source/dlls/user32/scroll.c
Debug channel "scroll".
Copyright © 2008 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jan 2008.