From 69e05a2e97775057e452b56e6959d52550078f19 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 5 Feb 2007 14:14:46 +0000 Subject: [PATCH] Restored drag position mysteriously removed in revision 1.233 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/treectrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index 0643a209e2..4cb0970a3c 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -1165,7 +1165,7 @@ void wxTreeCtrl::SetItemFont(const wxTreeItemId& item, const wxFont& font) // Reset the item's text to ensure that the bounding rect will be adjusted // for the new font. SetItemText(item, GetItemText(item)); - + RefreshItem(item); } @@ -2224,6 +2224,7 @@ WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara // generate the drag end event wxTreeEvent event(wxEVT_COMMAND_TREE_END_DRAG, this, htItem); + event.m_pointDrag = wxPoint(x, y); (void)GetEventHandler()->ProcessEvent(event); // if we don't do it, the tree seems to think that 2 items