diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 0d5621a969..0eeef36021 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1264,6 +1264,7 @@ bool wxListCtrl::DeleteItem(long item) // Deletes all items bool wxListCtrl::DeleteAllItems() { + m_count = 0; return ListView_DeleteAllItems(GetHwnd()) != 0; }