don't call DragFinish() before calling DragQueryPoint() or we (naturally) don't get the correct answer from the query (#10238)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-04 00:17:36 +00:00
parent 548d175dcf
commit 0386be5f06
2 changed files with 3 additions and 1 deletions

View File

@@ -130,6 +130,7 @@ wxMSW:
if the event handler causes window update.
- Fix display enumeration under WinCE (Vince Harron).
- Fix best size calculation for wxNotebook with multiple rows (Alex McCarthy).
- Correct coordinates of wxDropFilesEvent (Dmitriy Maksimov).
wxGTK:

View File

@@ -4017,7 +4017,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);
@@ -4027,6 +4026,8 @@ bool wxWindowMSW::HandleDropFiles(WXWPARAM wParam)
event.m_pos.x = dropPoint.x;
event.m_pos.y = dropPoint.y;
DragFinish(hFilesInfo);
return GetEventHandler()->ProcessEvent(event);
#endif
}