Returns the current position of a scrollbar control.
Takes scrollbarID (Int).
Returns data->currentPos if data exists, 0 otherwise.
BGI GUI
Parameters & Returns
Parameters
scrollbarIDInt
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).
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). Returns 0 for not found or missing data (ambiguous - 0 could be valid position). Use after user drags scrollbar or to query current state before updates. Works with both vertical (GIZMO_VSCROLLBAR) and horizontal (GIZMO_HSCROLLBAR) scrollbars. Common pattern: handle BGI_EVENT_COMMAND_UPDATE event, call bgiGetScrollbarPos() to get new position, update content accordingly.