Scroll to navigation

SetScrollInfo(3w) Wine API SetScrollInfo(3w)

NAME

SetScrollInfo (USER32.@)

SYNOPSIS

INT SetScrollInfo
(
HWND hwnd,
INT nBar,
const SCROLLINFO* info,
BOOL bRedraw
)
 

DESCRIPTION

SetScrollInfo can be used to set the position, upper bound, lower bound, and page size of a scrollbar control.
 

PARAMS

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?.
 

RETURNS

Scrollbar position.
 

NOTE

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.
 

IMPLEMENTATION

Declared in "commctrl.h".
Implemented in "dlls/user32/scroll.c".
Debug channel "scroll".
Oct 2012 Wine API