SetScrollInfo (USER32.@)
INT SetScrollInfo ( HWND hwnd, INT nBar, const SCROLLINFO* info, BOOL bRedraw )
SetScrollInfo can be used to set the position, upper bound, lower bound, and page size of a scrollbar control.
hwnd | [In] | Handle of window with scrollbar(s). |
nBar | [In] | One of SB_HORZ, SB_VERT, or SB_CTL. |
info | [In] | Specifies what to change and new values. |
bRedraw | [In] | Should scrollbar be redrawn afterwards?. |
Scrollbar position.
For 100 lines of text to be displayed in a window of 25 lines, one would for instance use info->nMin=0, info->nMax=75 (corresponding to the 76 different positions of the window on the text), and info->nPage=25.
Defined in "commctrl.h".
Implemented in "dlls/user32/scroll.c". source.winehq.org/source/dlls/user32/scroll.c
Debug channel "scroll".
Copyright © 2007 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Mar 2007.