Don't send selection events for an already selected item in wxMSW wxListBox.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 Jun 2010 22:58:13 +0000 (22:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 Jun 2010 22:58:13 +0000 (22:58 +0000)
commitc07b0669cf4158e4e4d9a609b1202b9d6db1fb4d
tree46c146351093178b21132bb2ea3f68d11a3279c2
parentf186bd4d4035909759af0e5e9fcfd958a879ed6f
Don't send selection events for an already selected item in wxMSW wxListBox.

Remember the last item for which a listbox notification event had been sent
and don't send it again if the user clicks on an already selected item. This
is consistent with wxGTK behaviour and generally makes more sense: why should
we send an event if the selection didn't really change?

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