WinXScroll_GetPos


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

Returns

$$TRUE on success or $$FALSE on fail

Remarks

The scrolling position is in the currently defined scrolling units for the window

Examples

' Get the position of the vertical scrollbar
WinXScroll_GetPos (#hMain, $$DIR_VERT, @pos)
IF pos = 0 THEN PRINT "Scrolled to top of window"

Related Links

Scrolling
WinXScroll_Scroll
WinXScroll_SetPage
WinXScroll_SetPos