зеркало из https://github.com/mozilla/pjs.git
DragEnter now sets the IDataObject into the DragService
This commit is contained in:
Родитель
c86ff04f8a
Коммит
8a43838a78
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче