ICoreWebView2CompositionController3.Drop

This function corresponds to IDropTarget::Drop.

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

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

Meta