---
name: "SetScrollInfo"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SetScrollInfo"
---

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