如何删除只知道特定列的特定项目?
答案 0 :(得分:0)
好吧,找到答案..
LVITEM lvi;
ZeroMemory(&lvi, sizeof(LVITEM));
lvi.pszText = "SomeText";
lvi.iSubItem = 1;
SendMessage(GetDlgItem(hWindow, IDC_LIST_USERS), LVM_GETITEM, 0, (LPARAM)(&lvi));
SendMessage(GetDlgItem(hWindow, IDC_LIST_USERS) , LVM_DELETEITEM, lvi.iItem, 0);