SetScrollPos(3w)

SetScrollPos3w

Usage

INT SetScrollPos
(
HWND hwnd,
INT nBar,
INT nPos,
BOOL bRedraw
)

Overview

Sets the current position of the scroll thumb.

Params

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

nBar [In] One of SB_HORZ, SB_VERT, or SB_CTL.

nPos [In] New value.

bRedraw [In] Should scrollbar be redrawn afterwards?.

Returns

Success: Scrollbar position

Failure: 0.

Remarks

Note the ambiguity when 0 is returned. Use GetLastError to make sure there was an error (and to know which one).

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.