How to clear a Listbox...?
But iListBox->Reset() does not really work... idea?
C'ya
How to clear a Listbox...?
But iListBox->Reset() does not really work... idea?
C'ya
You must clear the contents of the listbox model before calling iListBox->Reset().
The following code are from memory (so there may be errors) and is for a text listbox.
[code:1]CTextListBoxModel* lbModel = (CTextListBoxModel*)iListBox->Model();
CDesCArray* textarray = (CDesCArray*)lbModel->ItemTextArray();
textarray->Reset();
iListBox->Reset(); // or iListbox->HandleItemRemoval();
[/code:1]