GETTHUMBPOS

Top  Previous  Next

Syntax

INT = GETTHUMBPOS(win as WINDOW,id as INT)

Description

Gets the current thumb track position of a scrollbar control or a windows scrollbars.

Parameters

win - Window or dialog containing the scrollbar to query.

id - Identifier of a control or windows scrollbar.

Return value

The current thumb track position of the scrollbar

Remarks

Use and id of -1 for the windows horizontal scrollbar, -2 for the windows vertical scrollbar, or any other value for a scroll bar control. This function returns the full 32 bit position of the thumb track box. Use in response to the @SBTHUMBTRACK code or the @SBTHUMBPOS code while processing an @IDHSCROLL or @IDVSCROLL message.

See Also: GETSCROLLPOS

Example usage

hPos = GETTHUMBPOS(win, -1)