LV_ITEM STRUCT
imask dd ?
iItem dd ?
iSubItem dd ?
state dd ?
stateMask dd ?
pszText dd ?
cchTextMax dd ?
iImage dd ?
lParam dd ?
iIndent dd ?
LV_ITEM ENDS


iItem: The index of the item this structure refers to. The index is zero-based. You can think of this field as containing the "row" number of a table.


Do all the items in the list have consecutive indexes ? For example, after inserting 10 items, I delete the 4th item (index: 3). Can I insert a new item with the index of 10 ? Or I have to set its index to 3 ?
Posted on 2003-09-26 01:22:24 by hcm2k3
I think items are reindexed when one is deleted. So you don't need to insert item 3, because there is already one... the one that was previously item 4 :)
Posted on 2003-09-26 17:39:48 by QvasiModo