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

Method DragEnter

SampleApps/WebView2APISample/DropTarget.cpp:31–38  ·  view source on GitHub ↗

[DragEnter]

Source from the content-addressed store, hash-verified

29
30//! [DragEnter]
31HRESULT DropTarget::DragEnter(
32 IDataObject* dataObject, DWORD keyState, POINTL cursorPosition, DWORD* effect)
33{
34 POINT point = {cursorPosition.x, cursorPosition.y};
35 // Convert the screen point to client coordinates add the WebView's offset.
36 m_viewComponent->OffsetPointToWebView(&point);
37 return m_webViewCompositionController3->DragEnter(dataObject, keyState, point, effect);
38}
39//! [DragEnter]
40
41//! [DragOver]

Callers

nothing calls this directly

Calls 1

OffsetPointToWebViewMethod · 0.80

Tested by

no test coverage detected