RE: [?] LstView_SetItemText not working
You are trying to set the text of the next on in the list which doesn't exist yet. After you use LstView_AddItem, in the next line the LstView_GetCount is increased by 1 and therefore doen't have the same index. You can either minus one off of that in the SetItemText line, or you can just use the return value of the AddItem line and you should be fine.
Edit: also you don't need those last 2 parameters in the AddItem line as it will be added to the end of the list anyway and your itemData doesn't have any real purpose.
This post was edited on 09-20-2007 at 12:31 AM by markee.
|