SetScrollInfo.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

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

Defined in "commctrl.h".

Implemented in "dlls/user32/scroll.c".

Debug channel "scroll".