Listbox problem
Posted: Thu Dec 27, 2007 1:23 pm
Hi I made a list and added some elements on it and everythign is fine.
now... using this code I add some Items to another list
everything is ok as it adds the items just that only the first is selectable... as in the others are disabled.
Do you have any ideea why does this happen?
now... using this code I add some Items to another list
Code: Select all
if(vector_elements.size())
{
for(int i =0;i<vector_elements.size();i++)
{
text2 = new wchar_t[strlen(vector_elements[i].c_str()) + 1];
mbstowcs(text2, vector_elements[i].c_str(), strlen(vector_elements[i].c_str()) + 1);
listbox->addItem(text2);
}
}
Do you have any ideea why does this happen?