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:
parent
b55ff31e20
commit
63ec176495
@ -1264,6 +1264,7 @@ bool wxListCtrl::DeleteItem(long item)
|
||||
// Deletes all items
|
||||
bool wxListCtrl::DeleteAllItems()
|
||||
{
|
||||
m_count = 0;
|
||||
return ListView_DeleteAllItems(GetHwnd()) != 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user