Home > Software engineering >  Screening of the listview control create statistics are deleted a few lines
Screening of the listview control create statistics are deleted a few lines

Time:11-07

want to realize the listview table according to the condition of screening line, online search are listView1. Items. Remove (listView1. SelectedItems [0]). This code can be achieved, but change to my current program, display class tagVITEMW SelectedItems members, can you tell me where the error is, or is there any other way to achieve screening line, the SDK: begin with "ListView_" macro ListView_DeleteItem, this I tried it on as if can only keep a few lines

CodePudding user response:

//delete the selected item
For (int iSel=ListView_GetSelectionMark (hWndLV); ISel & gt;=0; )
{
ListView_DeleteItem (hWndLV, iSel);
}


  • Related