为什么我的动态列表可正常显示,但点击上去就会变成乱码?
我创建了一个动态列表,可以正常显示,但点击上去就会变成乱码。下面是我处理点击事件的代码,我发现得到的index是对的,但text是空(乱)的,为什么?
if(eventP->data.lstSelect.listID == WOEquipList)
{
ListPtr pList = (ListPtr)GetObjectPointer(WOEquipList);
Int16 num = LstGetNumberOfItems(pList);
Int16 index = LstGetSelection(pList);
Char *text = LstGetSelectionText(pList,index);
...
}