Uređivanje

Dijeli putem


HwndSourceHook Delegate

Definition

Represents the method that handles Win32 window messages.

public delegate IntPtr HwndSourceHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool % handled);
public delegate IntPtr HwndSourceHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
type HwndSourceHook = delegate of nativeint * int * nativeint * nativeint * bool -> nativeint
Public Delegate Function HwndSourceHook(hwnd As IntPtr, msg As Integer, wParam As IntPtr, lParam As IntPtr, ByRef handled As Boolean) As IntPtr 

Parameters

hwnd
IntPtr

nativeint

The window handle.

msg
Int32

The message ID.

wParam
IntPtr

nativeint

The message's wParam value.

lParam
IntPtr

nativeint

The message's lParam value.

handled
Boolean

A value that indicates whether the message was handled. Set the value to true if the message was handled; otherwise, false.

Return Value

IntPtr

nativeint

The appropriate return value depends on the particular message. See the message documentation details for the Win32 message being handled.

Remarks

Use the AddHook method to register this handler to receive messages.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

See also