From 77b7cd4fc381ada7099a0efcb3d124c2704f79fb Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 2 Mar 2005 18:31:54 +0000 Subject: [PATCH] Set the mouse pos for the drag events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectlg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 80e77ad8aa..728cbe2f54 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -3100,6 +3100,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event ) wxTreeEvent nevent( command, GetId() ); nevent.m_item = m_current; nevent.SetEventObject(this); + nevent.SetPoint(pt); // by default the dragging is not supported, the user code must // explicitly allow the event for it to take place -- 2.45.2