MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Drop

Method Drop

Source/Engine/Platform/Windows/WindowsWindow.DragDrop.cpp:645–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645HRESULT Window::Drop(Windows::IDataObject* pDataObj, Windows::DWORD grfKeyState, Windows::POINTL pt, Windows::DWORD* pdwEffect)
646{
647 POINT p = { pt.x, pt.y };
648 ::ScreenToClient((HWND)_handle, &p);
649 GuiDragDropData.Init((IDataObject*)pDataObj);
650 DragDropEffect effect = DragDropEffect::None;
651 ScopeLock gpuLock(GPUDevice::Instance->Locker); // Avoid issues when DoDragDropJob is during frame painting
652 OnDragDrop(&GuiDragDropData, Float2(static_cast<float>(p.x), static_cast<float>(p.y)), effect);
653 *pdwEffect = dropEffect2OleEnum(effect);
654 return S_OK;
655}
656
657#else
658

Callers

nothing calls this directly

Calls 4

ScreenToClientFunction · 0.85
Float2Class · 0.85
dropEffect2OleEnumFunction · 0.85
InitMethod · 0.45

Tested by

no test coverage detected