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

# SetScrollRange(3w)

## NAME

**SetScrollRange** (USER32.@)

## SYNOPSIS

BOOL SetScrollRange\
  (\
   HWND *hwnd*,\
   INT  *nBar*,\
   INT  *minVal*,\
   INT  *maxVal*,\
   BOOL *bRedraw*\
  )

## DESCRIPTION

The SetScrollRange function sets the minimum and maximum scroll box positions If nMinPos and nMaxPos is the same value, the scroll bar will hide.

Sets the range of the scroll bar.

## PARAMS

*hwnd* **\[In\]**  Handle of window with scrollbar(s).

*nBar* **\[In\]**  One of **SB\_HORZ**, **SB\_VERT**, or **SB\_CTL**.

*minVal* **\[In\]**  New minimum value.

*maxVal* **\[In\]**  New Maximum value.

*bRedraw* **\[In\]**  Should scrollbar be redrawn afterwards?.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

Declared in **"commctrl.h"**.

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

Debug channel **"scroll"**.
