ScrollBar

ScrollBarHitTest

Identify the part of the scroll bar at a screen position

Syntax

Signature
int            ScrollBarHitTest( const ScrollBar *scrollBar, int row, int col );

Arguments

scrollBar the scroll bar.

row, col the screen row and column to test.

Return value

HTSCROLLUNITDEC on the previous arrow, HTSCROLLUNITINC on the next arrow, HTSCROLLTHUMBDRAG on the thumb, HTSCROLLBLOCKDEC on the track before the thumb, HTSCROLLBLOCKINC on the track after it, or HTNOWHERE outside the bar or if the object is NULL.

Description

The test uses the stored orientation, coordinates and thumb position. The application can use the result to choose an input action, then update the current item and move the thumb.

See also