From acaea66035b4bfb7ea1f212bcda280c97d6838d9 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Fri, 23 Apr 1999 21:57:44 +0000 Subject: [PATCH] DragEnter now sets the IDataObject into the DragService --- widget/src/windows/nsNativeDragTarget.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/widget/src/windows/nsNativeDragTarget.cpp b/widget/src/windows/nsNativeDragTarget.cpp index db4f873d7d20..03d01032ec36 100644 --- a/widget/src/windows/nsNativeDragTarget.cpp +++ b/widget/src/windows/nsNativeDragTarget.cpp @@ -208,6 +208,14 @@ STDMETHODIMP nsNativeDragTarget::DragEnter(LPDATAOBJECT pIDataSource, mDataObj = pIDataSource; NS_ADDREF(mDataObj); + // This cast is ok because in the constructor we created a + // the actual implementation we wanted, so we know this is + // a nsDragService + nsDragService * winDragService = NS_STATIC_CAST(nsDragService *, mDragService); + + // Set the native data object into drage service + winDragService->SetIDataObject(pIDataSource); + // Now process the native drag state and then dispatch the event ProcessDrag(NS_DRAGDROP_ENTER, grfKeyState, pt, pdwEffect);