Gets the total number of items in a list box or combo box.
Takes gizmo (Int).
Returns count or -1 if LB_ERR.
BGI GUI
Parameters & Returns
Parameters
gizmoInt
Returns
Int
Quick Summary
Gets the total number of items in a list box or combo box.
Takes gizmo (Int).
Returns count or -1 if LB_ERR.
Technical Exegesis...
Gets the total number of items in a list box or combo box control. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, sends LB_GETCOUNT message, returns count or -1 if LB_ERR. For GIZMO_COMBOBOX, sends CB_GETCOUNT message, returns count or -1 if LB_ERR (note: uses LB_ERR constant for CB check). Returns -1 if gizmo not found or unsupported gizmo type.
This function returns how many items exist in the list or combo box. Works with both GIZMO_LISTBOX and GIZMO_COMBOBOX types.
Gets the total number of items in a list box or combo box control. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, sends LB_GETCOUNT message, returns count or -1 if LB_ERR. For GIZMO_COMBOBOX, sends CB_GETCOUNT message, returns count or -1 if LB_ERR (note: uses LB_ERR constant for CB check). Returns -1 if gizmo not found or unsupported gizmo type.
This function returns how many items exist in the list or combo box. Works with both GIZMO_LISTBOX and GIZMO_COMBOBOX types. Returns -1 for errors, empty lists, or invalid gizmo IDs (could be ambiguous). Use for iterating through all items, validating indices, or displaying item counts. Item indices range from 0 to count-1. Common pattern: loop from 0 to bgiGetGizmoItemsAmount()-1 to process all items.