Don't send event from wxMSW::wxListCtrl::DeleteAllItems() if it did nothing.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 22 Aug 2010 22:15:17 +0000 (22:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 22 Aug 2010 22:15:17 +0000 (22:15 +0000)
commit4b97af90bf2f010e61ed785cec8029e8e7903bc9
tree0f370b38bc8147053721c59cbf6a64403c087efe
parentacdc8633de4cad24bc971f3a3a0c3072fcc7f09a
Don't send event from wxMSW::wxListCtrl::DeleteAllItems() if it did nothing.

wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS should only be sent if the control hadn't
been empty before. Document this behaviour and adjust wxMSW to match the
other platforms.

Also document the return value better.

Closes #12336.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
interface/wx/listctrl.h
src/msw/listctrl.cpp