WindowMessage 委托

定义

表示一个委托,该委托用于引用将处理窗口消息的方法。Represents a delegate that is used to reference the method that will handle window messages.

public delegate void WindowMessage(int msgId, IntPtr parameter1, IntPtr parameter2);
public delegate void WindowMessage(int msgId, IntPtr parameter1, IntPtr parameter2);
type WindowMessage = delegate of int * nativeint * nativeint -> unit
Public Delegate Sub WindowMessage(msgId As Integer, parameter1 As IntPtr, parameter2 As IntPtr)

参数

msgId
Int32

消息的标识符。The message identifier.

parameter1
IntPtr

指向第一个消息参数的指针。A pointer to the first message parameter. 此参数的值取决于消息。The value of this parameter depends on the message.

parameter2
IntPtr

指向第二个消息参数的指针。A pointer to the second message parameter. 此参数的值取决于消息。The value of this parameter depends on the message.

继承
WindowMessage

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于