I was trying to delete the currently selected listview item using MFC methods, but obviously they werent compatible
How can I accomplish this in VS 2005 (standard .NET windows forms NOT MFC?
I have tried
void CMyListView::DeleteSelectedRow()
{
int nIndex = GetListCtrl().GetSelectionMark();
if(nIndex != -1)
{
GetListCtrl().DeleteItem(nIndex);
}
}
Thanks in advance