MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / Drop

Method Drop

SampleApps/WebView2APISample/DropTarget.cpp:60–68  ·  view source on GitHub ↗

[Drop]

Source from the content-addressed store, hash-verified

58
59//! [Drop]
60HRESULT DropTarget::Drop(
61 IDataObject* dataObject, DWORD keyState, POINTL cursorPosition, DWORD* effect)
62{
63 POINT point = {cursorPosition.x, cursorPosition.y};
64 // Convert the screen point to client coordinates add the WebView's offset.
65 // This returns whether the resultant point is over the WebView visual.
66 m_viewComponent->OffsetPointToWebView(&point);
67 return m_webViewCompositionController3->Drop(dataObject, keyState, point, effect);
68}
69//! [Drop]

Callers

nothing calls this directly

Calls 1

OffsetPointToWebViewMethod · 0.80

Tested by

no test coverage detected