Fix dnd events in generic wxDataViewCtrl when moving out of the window.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 29 Jun 2013 12:51:24 +0000 (12:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 29 Jun 2013 12:51:24 +0000 (12:51 +0000)
commit9e8125a1a8157a8081580149a117104497ea8a0b
treee920dc9f19880482ff61d57aa081915915ff80b8
parent42ed9de2921e8c8d2c7f3ab04ce1713b4f975e6f
Fix dnd events in generic wxDataViewCtrl when moving out of the window.

The wxEVT_DATAVIEW_ITEM_BEGIN_DRAG event wasn't triggered if the mouse moved
below the last item or beyond the last column of a control or left the window
completely.

Fix this by checking for the beginning of the drag before checking for the
mouse being out of items area and also force the drag to start if the mouse is
leaving the window as we would never do it otherwise.

Closes #15258.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/datavgen.cpp