The OpenD Programming Language

ICoreWebView2CompositionController3.DragEnter

This function corresponds to IDropTarget::DragEnter.

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 DragEnter 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 DragEnter

interface ICoreWebView2CompositionController3
HRESULT
DragEnter
(
in IDataObject* dataObject
,
in DWORD keyState
,
in POINT point
,
DWORD* effect
)

Meta