Compartir a través de


CoreWebView2CompositionController.CreateCoreWebView2PointerInfoFromPointerId Method

Definition

Converts a PointerId received from the system into a CoreWebView2PointerInfo.

public Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo CreateCoreWebView2PointerInfoFromPointerId (uint PointerId, IntPtr ParentWindow, System.Numerics.Matrix4x4 transform);
member this.CreateCoreWebView2PointerInfoFromPointerId : uint32 * nativeint * System.Numerics.Matrix4x4 -> Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo
Public Function CreateCoreWebView2PointerInfoFromPointerId (PointerId As UInteger, ParentWindow As IntPtr, transform As Matrix4x4) As CoreWebView2PointerInfo

Parameters

PointerId
UInt32

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

ParentWindow
IntPtr

nativeint

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

See also