bgiGetScrollbarPos

Returns the current position of a scrollbar control. Takes scrollbarID (Int). Returns data->currentPos if data exists, 0 otherwise.

BGI GUI

Parameters & Returns

Parameters

scrollbarID Int

Returns

Int

Quick Summary

Returns the current position of a scrollbar control. Takes scrollbarID (Int). Returns data->currentPos if data exists, 0 otherwise.

Technical Exegesis...

Returns the current position of a scrollbar control. Searches gizmoMap for scrollbarID. If found, gets CustomScrollbarData* via GetWindowLongPtr(GWLP_USERDATA). Returns data->currentPos if data exists, 0 otherwise. Returns 0 if scrollbar not found.

This function retrieves the scrollbar's current thumb position within its range. CustomScrollbarData is stored in window's GWLP_USERDATA slot. currentPos field holds the position value (between minVal and maxVal).

Example

Example.bam
; No example implemented yet