]> git.saurik.com Git - wxWidgets.git/commitdiff
don't call DragFinish() before calling DragQueryPoint() or we (naturally) don't get...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Dec 2008 00:17:36 +0000 (00:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Dec 2008 00:17:36 +0000 (00:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 22913dd508fff55dbd5db766390082f0d4116a9a..b147823bea98ad45e6c5cb4c4f8467bd2209e6ab 100644 (file)
@@ -4088,7 +4088,6 @@ bool wxWindowMSW::HandleDropFiles(WXWPARAM wParam)
         ::DragQueryFile(hFilesInfo, wIndex,
                         wxStringBuffer(files[wIndex], len), len);
     }
-    DragFinish (hFilesInfo);
 
     wxDropFilesEvent event(wxEVT_DROP_FILES, gwFilesDropped, files);
     event.SetEventObject(this);
@@ -4098,6 +4097,8 @@ bool wxWindowMSW::HandleDropFiles(WXWPARAM wParam)
     event.m_pos.x = dropPoint.x;
     event.m_pos.y = dropPoint.y;
 
+    DragFinish(hFilesInfo);
+
     return HandleWindowEvent(event);
 #endif
 }