SetScrollPos(3w)

NAME

SetScrollPos (USER32.@)

SYNOPSIS

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

DESCRIPTION

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

Defined in "commctrl.h".

Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/user32/scroll.c".

Debug channel "scroll".
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout