-=[°MastiX_MC°]=-
19-12-2002, 09:17 AM
How to clear a Listbox...?
But iListBox->Reset() does not really work... idea?
C'ya
But iListBox->Reset() does not really work... idea?
C'ya
|
View Full Version : How to clear listbox? -=[°MastiX_MC°]=- 19-12-2002, 09:17 AM How to clear a Listbox...? But iListBox->Reset() does not really work... idea? C'ya cmatthee 19-12-2002, 09:37 AM 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] |