I have used GetSelections to get the indexes of all the selected items in a ListBox. But now I need to get the indexes of all items, selected or unselected. I didn't find a function for that or maybe I just missed it.
Thanks in advance
Thomas
EDIT:
I just use GetString(int) now. But I have a problem: I try to fill a wxArrayString in a loop but always get an error:
Code: Select all
wxArrayString Printers;
int items_count = ListBox2->GetCount();
int i = 0;
do
{
Printers = ListBox2->GetString(i);
}
while(i < items_count);
Error:
no match for 'operator=' (operand types are 'wxArrayString' and 'wxString')|
candidate is:
wxArrayString& wxArrayString::operator=(const wxArrayString&)|
no known conversion for argument 1 from 'wxString' to 'const wxArrayString&'|