Sdílet prostřednictvím


WebView2.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) Method

Definition

This is overridden from HwndHost and is called to provide us with Win32 messages that are sent to our hwnd.

protected override IntPtr WndProc (IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
override this.WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
Protected Overrides Function WndProc (hwnd As IntPtr, msg As Integer, wParam As IntPtr, lParam As IntPtr, ByRef handled As Boolean) As IntPtr

Parameters

hwnd
IntPtr

nativeint

Window receiving the message (should always match our Handle).

msg
Int32

Indicates the message being received. See Win32 documentation for WM_* constant values.

wParam
IntPtr

nativeint

The "wParam" data being provided with the message. Meaning varies by message.

lParam
IntPtr

nativeint

The "lParam" data being provided with the message. Meaning varies by message.

handled
Boolean

If true then the message will not be forwarded to any (more) MessageHook handlers.

Returns

IntPtr

nativeint

Return value varies by message.

Applies to

See also