DragEnter now sets the IDataObject into the DragService

This commit is contained in:
rods%netscape.com 1999-04-23 21:57:44 +00:00
Родитель c86ff04f8a
Коммит 8a43838a78
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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);