SetScrollInfo(3w)

SetScrollInfo3w

Usage

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

Overview

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

Releases

5 releases since Debian 2.1 (Slink); the text changed 4 times.

  1. 2.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.