Hi,
i need help, cause ListView_InsertItem returns 0 in case the lvi.pszText was inserted before. For example:
i inserted "hugo99" and at the second try to insert the same string i got 0 in ret.
What do i wrong? Following my code...
Thx Klaus
memset(&lvi,'\0',sizeof(lvi));
lvi.mask = LVIF_TEXT | LVIF_PARAM | LVIF_IMAGE;
lvi.pszText = lpSEARCHTBLtmp->cName;
lvi.lParam = lpSEARCHTBLtmp->nIndex;
lvi.iImage = lpSEARCHTBLtmp->nKZ - 1;
ret = ListView_InsertItem(hWndSearchItems, &lvi);
i need help, cause ListView_InsertItem returns 0 in case the lvi.pszText was inserted before. For example:
i inserted "hugo99" and at the second try to insert the same string i got 0 in ret.
What do i wrong? Following my code...
Thx Klaus
memset(&lvi,'\0',sizeof(lvi));
lvi.mask = LVIF_TEXT | LVIF_PARAM | LVIF_IMAGE;
lvi.pszText = lpSEARCHTBLtmp->cName;
lvi.lParam = lpSEARCHTBLtmp->nIndex;
lvi.iImage = lpSEARCHTBLtmp->nKZ - 1;
ret = ListView_InsertItem(hWndSearchItems, &lvi);