git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29275
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Deletes all items
bool wxListCtrl::DeleteAllItems()
{
- FreeAllInternalData();
return ListView_DeleteAllItems(GetHwnd()) != 0;
}
// notifications - this makes deleting all items from a list ctrl
// much faster
*result = TRUE;
+
+ // also, we may free all user data now (couldn't do it before as
+ // the user should have access to it in OnDeleteAllItems() handler)
+ FreeAllInternalData();
return true;
case LVN_ENDLABELEDITA: