Need to reset count when all items are deleted

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-12-22 22:02:29 +00:00
parent b55ff31e20
commit 63ec176495

View File

@ -1264,6 +1264,7 @@ bool wxListCtrl::DeleteItem(long item)
// Deletes all items
bool wxListCtrl::DeleteAllItems()
{
m_count = 0;
return ListView_DeleteAllItems(GetHwnd()) != 0;
}