NAME

SetScrollPos  (USER32.@)

SYNOPSIS

 int SetScrollPos
 (
  HWND hwnd,
  int  bar,
  int  pos,
  BOOL redraw
 )

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

Declared in "include/textserv.h". gitlab.winehq.org/wine/wine/blob/master/include/textserv.h

Implemented in "dlls/user32/scroll.c". gitlab.winehq.org/wine/wine/blob/master/dlls/user32/scroll.c

Debug channel "scroll".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.