CoreWebView2CompositionController.CreateCoreWebView2PointerInfoFromPointerId Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Converts a PointerId received from the system into a CoreWebView2PointerInfo.

C#
public Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo CreateCoreWebView2PointerInfoFromPointerId (uint PointerId, IntPtr ParentWindow, System.Numerics.Matrix4x4 transform);

Parameters

PointerId
UInt32

The PointerId received from the system to be converted into a CoreWebView2PointerInfo.

ParentWindow
IntPtr

The HWND that contains the WebView. This can be any HWND in the hwnd tree that contains the WebView.

transform
Matrix4x4

The transform from that HWND to the WebView.

Returns

Remarks

The returned CoreWebView2PointerInfo is used in SendPointerInput(CoreWebView2PointerEventKind, CoreWebView2PointerInfo). The PointerKind must be either pen or touch or the function will fail.

Applies to

Proizvod Verzije
WebView2 .NET Prerelease 0.9.628, 1.0.674, 1.0.721, 1.0.790, 1.0.824, 1.0.865, 1.0.902, 1.0.955, 1.0.1010, 1.0.1018, 1.0.1056, 1.0.1083, 1.0.1133, 1.0.1158, 1.0.1189, 1.0.1222, 1.0.1248, 1.0.1305, 1.0.1340, 1.0.1369, 1.0.1414, 1.0.1466, 1.0.1549, 1.0.1619, 1.0.1671, 1.0.1724, 1.0.1777, 1.0.1829, 1.0.1905, 1.0.1988, 1.0.2065, 1.0.2106, 1.0.2164, 1.0.2194, 1.0.2357, 1.0.2415, 1.0.2470, 1.0.2526, 1.0.2584, 1.0.2646, 1.0.2730, 1.0.2783, 1.0.2839, 1.0.2895, 1.0.2950, 1.0.3079, 1.0.3116

See also