Deselect all items in wxMSW wxListBox when selection is set to -1.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Nov 2010 13:10:54 +0000 (13:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Nov 2010 13:10:54 +0000 (13:10 +0000)
commitbbb03ec995a4e955a3f7a255dfeb05989924776a
tree2509a0960bf598b1124e3b157c61c953cbeb7a34
parent79323592eba8d44320ecd1cde789315255668a23
Deselect all items in wxMSW wxListBox when selection is set to -1.

Even though this behaviour is somewhat counterintuitive, the documentation
mentions that this is what should happen and wxGTK and wxOSX already behave
like this so bring wxMSW in line.

wxListBox::DeselectAll() should probably just call SetSelection(wxNOT_FOUND)
when the item to leave selected is not specified too now.

Closes #12705.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/listbox.cpp
tests/controls/listboxtest.cpp