The OpenD Programming Language

ICoreWebView2CompositionController3.DragOver

This function corresponds to IDropTarget::DragOver.

This function has a dependency on AllowExternalDrop property of CoreWebView2Controller and return E_FAIL to callers to indicate this operation is not allowed if AllowExternalDrop property is set to false.

The hosting application must register as an IDropTarget and implement and forward DragOver calls to this function.

point parameter must be modified to include the WebView's offset and be in the WebView's client coordinates (Similar to how SendMouseInput works).

\snippet DropTarget.cpp DragOver

interface ICoreWebView2CompositionController3
HRESULT
DragOver
(
in DWORD keyState
,
in POINT point
,
DWORD* effect
)

Meta