I am using a ListBox use with an Owner Draw callback to display a large amount of items (max 2000). I use this widget because it simplify the selection of an item and the usage of scrollbars,
To Draw the items, the listbox must have the correct number of rows, so i have to add any item with LISTBOX_AddString(hItem,""), but this operation is too slow (takes several seconds).
The LISTBOX can change rapidly the number of items (ex. from 500 to 10), and i have to remove the rows (ex. 490) using LISTBOX_DeleteItem(hItem,0).
There is a way to speedup the operation with this widget or is better to change drastically the form structure??
To Draw the items, the listbox must have the correct number of rows, so i have to add any item with LISTBOX_AddString(hItem,""), but this operation is too slow (takes several seconds).
The LISTBOX can change rapidly the number of items (ex. from 500 to 10), and i have to remove the rows (ex. 490) using LISTBOX_DeleteItem(hItem,0).
There is a way to speedup the operation with this widget or is better to change drastically the form structure??