DragEnter now sets the IDataObject into the DragService

This commit is contained in:
rods%netscape.com 1999-04-23 21:57:44 +00:00
parent 1e9b1a0045
commit acaea66035

View File

@ -208,6 +208,14 @@ STDMETHODIMP nsNativeDragTarget::DragEnter(LPDATAOBJECT pIDataSource,
mDataObj = pIDataSource; mDataObj = pIDataSource;
NS_ADDREF(mDataObj); 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 // Now process the native drag state and then dispatch the event
ProcessDrag(NS_DRAGDROP_ENTER, grfKeyState, pt, pdwEffect); ProcessDrag(NS_DRAGDROP_ENTER, grfKeyState, pt, pdwEffect);