hLB = WinXAddListBox (parent, sort, multiSelect, id)
Creates a new list box control.
Parameter | Description |
---|---|
parent | The window to add the list box control to |
sort | $$TRUE to auto sort the list box, $$FALSE otherwise |
multiSelect | $$TRUE if the user can select more than 1 item, $$FALSE otherwise |
id | The unique id constant to identify this control |
The handle to the new list box or 0 on fail
If the multiSelect parameter is $$TRUE, the user can select multiple items by control and shift clicking methods.
'Create a basic list box, which allows multiple items to be selected $$ID_LISTBOX = 100 hLB = WinXAddListBox (#hMain, $$FALSE, $$TRUE, $$ID_LISTBOX) |
WinXListBox_AddItem
WinXListBox_RemoveItem
WinXListBox_GetSelection
WinXListBox_SetSelection
WinXListBox_GetIndex
WinXListBox_GetItem$