I'm having trouble adding items onto a ListView control. When I try to add items to my ListView, nothing happens. I was using this code before, and it didn't work.
I have 3 columns, with the SubItem values set to 1, 2, and 3.
LVITEM item;
item.mask = LVIF_TEXT;
item.cchTextMax = 6;
item.iSubItem = 1;
item.pszText = TEXT("12345");
item.iItem = 0;
ListView_InsertItem(hListView, &item);
item.iSubItem = 2; // zero based index of column
item.pszText = TEXT("23456");
ListView_InsertItem(hListView, &item);
item.iSubItem = 3; // zero based index of column
item.pszText = TEXT("34567");
ListView_InsertItem(hListView, &item);