Message.Create(IntPtr, Int32, IntPtr, IntPtr) Message.Create(IntPtr, Int32, IntPtr, IntPtr) Message.Create(IntPtr, Int32, IntPtr, IntPtr) Message.Create(IntPtr, Int32, IntPtr, IntPtr) Method

Definition

Creates a new Message.

public:
 static System::Windows::Forms::Message Create(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam);
public static System.Windows.Forms.Message Create (IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam);
static member Create : nativeint * int * nativeint * nativeint -> System.Windows.Forms.Message
Public Shared Function Create (hWnd As IntPtr, msg As Integer, wparam As IntPtr, lparam As IntPtr) As Message

Parameters

hWnd
IntPtr IntPtr IntPtr IntPtr

The window handle that the message is for.

msg
Int32 Int32 Int32 Int32

The message ID.

wparam
IntPtr IntPtr IntPtr IntPtr

The message wparam field.

lparam
IntPtr IntPtr IntPtr IntPtr

The message lparam field.

Returns

A Message that represents the message that was created.

Remarks

Use the Create method to create a Message to wrap a message sent by Windows.

Applies to