From: Robin Dunn Date: Wed, 22 Dec 2004 22:02:29 +0000 (+0000) Subject: Need to reset count when all items are deleted X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/63ec176495f334a38767e670d9e033da4db8f2e2?ds=inline 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 --- 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; }