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

Method DragOver

SampleApps/WebView2APISample/DropTarget.cpp:42–49  ·  view source on GitHub ↗

[DragOver]

Source from the content-addressed store, hash-verified

40
41//! [DragOver]
42HRESULT DropTarget::DragOver(DWORD keyState, POINTL cursorPosition, DWORD* effect)
43{
44 POINT point = {cursorPosition.x, cursorPosition.y};
45 // Convert the screen point to client coordinates add the WebView's offset.
46 // This returns whether the resultant point is over the WebView visual.
47 m_viewComponent->OffsetPointToWebView(&point);
48 return m_webViewCompositionController3->DragOver(keyState, point, effect);
49}
50//! [DragOver]
51
52//! [DragLeave]

Callers

nothing calls this directly

Calls 1

OffsetPointToWebViewMethod · 0.80

Tested by

no test coverage detected