Fix selection events generation in multi-select wxTreeCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Aug 2009 17:24:53 +0000 (17:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Aug 2009 17:24:53 +0000 (17:24 +0000)
commitd301c440937fc3f9dda237d2b07da1a203fc61c8
tree820d90f7715234485b863257c5ce436739f9f450
parentf2fec40d2c3533e112e6d673fb113b77e65bfd66
Fix selection events generation in multi-select wxTreeCtrl.

Only deselect the items when the mouse is released if really necessary: add a
flag indicating when it is instead of trying to deduce it in the mouse up
handler.

Closes #11099 (thanks to Jonathan Liu).

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