WinXScroll_GetPos (hWnd, direction, @pos)
Gets the current position of a scrollbar in scrolling units
Parameter | Description |
---|---|
hWnd | The handle to the window the scrollbar belongs to |
direction | The direction of the scrollbar, $$DIR_VERT or $$DIR_HORIZ |
@pos | A variable to receive the position of the scrollbar |
$$TRUE on success or $$FALSE on fail
The scrolling position is in the currently defined scrolling units for the window
' Get the position of the vertical scrollbar WinXScroll_GetPos (#hMain, $$DIR_VERT, @pos) IF pos = 0 THEN PRINT "Scrolled to top of window" |
Scrolling
WinXScroll_Scroll
WinXScroll_SetPage
WinXScroll_SetPos