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