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

定義

建立新的 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

nativeint

訊息的視窗控制代碼。

msg
Int32

訊息 ID。

wparam
IntPtr

nativeint

訊息的 wparam 欄位。

lparam
IntPtr

nativeint

訊息的 lparam 欄位。

傳回

Message,表示已建立的訊息。

備註

Create使用 方法來建立 Message ,以包裝 Windows 所傳送的訊息。

適用於