| 643 | } |
| 644 | |
| 645 | HRESULT 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 |
nothing calls this directly
no test coverage detected