Message.Create(IntPtr, Int32, IntPtr, IntPtr) 方法

定义

创建新的MessageCreates 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

参数

hWnd
IntPtr

该消息的窗口句柄。The window handle that the message is for.

msg
Int32

消息 ID。The message ID.

wparam
IntPtr

消息 wparam 字段。The message wparam field.

lparam
IntPtr

消息 lparam 字段。The message lparam field.

返回

Message,表示已创建的消息。A Message that represents the message that was created.

注解

使用 Create 方法来创建一个 Message 来包装 Windows 发送的消息。Use the Create method to create a Message to wrap a message sent by Windows.

适用于