I've been trying to retrieve two values from a listview control:
image index - lvi.iImage
text - lvi.pszText

But the ListView_GetItem() always returns a zero.

Code:
LV_ITEM lvi;
char string[100]={0};

lvi.mask = LVIF_IMAGE | LVIF_TEXT;
lvi.iSubItem = 0;
lvi.iItem = 0;
lvi.pszText = string;
lvi.cchTextMax = 100;
ListView_GetItem(hListView, &lvi);
What is the problem?



Thank you.