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

Method DragEnter

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

Source from the content-addressed store, hash-verified

615}
616
617HRESULT Window::DragEnter(Windows::IDataObject* pDataObj, Windows::DWORD grfKeyState, Windows::POINTL pt, Windows::DWORD* pdwEffect)
618{
619 POINT p = { pt.x, pt.y };
620 ::ScreenToClient((HWND)_handle, &p);
621 GuiDragDropData.Init((IDataObject*)pDataObj);
622 DragDropEffect effect = DragDropEffect::None;
623 OnDragEnter(&GuiDragDropData, Float2(static_cast<float>(p.x), static_cast<float>(p.y)), effect);
624 Focus();
625 *pdwEffect = dropEffect2OleEnum(effect);
626 return S_OK;
627}
628
629HRESULT Window::DragOver(Windows::DWORD grfKeyState, Windows::POINTL pt, Windows::DWORD* pdwEffect)
630{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected