To add to above comment:
The ListView_InsertItem would only insert a new row if the lvI.iItem is less than the number of rows currently contained by the list control.
So, the above notification is a one-time notification to initially filling the list. Or you have to clear the list before notification.
IMO, none of these is an action which a notification handler should perform ?
Main Topics
Browse All Topics





by: alb66Posted on 2009-11-02 at 23:56:21ID: 25726789
Try to add also a text to you items:
lvI.mask = LVIF_PARAM|LVIF_TEXT;
lvI.iItem = rows;
lvI.iSubItem = 0;
lvI.pszText = "Hello!";
lvI.lParam = (LPARAM) &dataToDisplay[rows];