ScrollBar

ScrollBarGetThumbPos

Return the stored position of the thumb within the track

Syntax

Signature
int            ScrollBarGetThumbPos( const ScrollBar *scrollBar );

Return value

The stored one-based thumb position, or 0 if the object is NULL.

Description

The thumb's screen coordinate along the bar is `start + thumbPos`. The stored value starts at `1` and is recalculated by `ScrollBarDisplay()` and `ScrollBarUpdate()` when the track length and item total are at least `2`.

See also