From 63ec176495f334a38767e670d9e033da4db8f2e2 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 22 Dec 2004 22:02:29 +0000 Subject: [PATCH] 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 --- src/msw/listctrl.cpp | 1 + 1 file changed, 1 insertion(+) 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; }