list control

does anyone know why I cant insert item for my list control when I have set it as report view?

1
2
3
4
5
6
7
8
LVITEM lvi;
strSelected="office";
lvi.mask =  LVIF_TEXT;
lvi.iItem = participantIndex;
lvi.iSubItem = 0;
lvi.pszText = (LPTSTR)(LPCTSTR)(strSelected);
lvi.iImage = 0;
lParticipant.InsertItem(&lvi);


lParticipant is my list control
Last edited on
Topic archived. No new replies allowed.