]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/ole/droptgt.cpp
Found bug that skrewed up display wrt horizontal
[wxWidgets.git] / src / msw / ole / droptgt.cpp
index 67825f8569c8e97441581b241547b2e94051209f..c133b3d9b4b17ec5828eee826d4ef806e83e233a 100644 (file)
@@ -61,6 +61,10 @@ class wxIDropTarget : public IDropTarget
 {
 public:
     wxIDropTarget(wxDropTarget *p);
+    // suppress gcc warning
+#ifdef __GNUG__
+    virtual
+#endif
     ~wxIDropTarget();
 
     // accessors for wxDropTarget
@@ -260,14 +264,11 @@ STDMETHODIMP wxIDropTarget::Drop(IDataObject *pIDataSource,
 
         // and now it has the data
         wxDragResult rc = ConvertDragEffectToResult(GetDropEffect(grfKeyState));
-        m_pTarget->OnData(pt.x, pt.y);//, rc);
-/*
+        rc = m_pTarget->OnData(pt.x, pt.y, rc);
         if ( wxIsDragResultOk(rc) ) {
             // operation succeeded
             *pdwEffect = ConvertDragResultToEffect(rc);
         }
-*/
-
         //else: *pdwEffect is already DROPEFFECT_NONE
     }
     //else: OnDrop() returned FALSE, no need to copy data