Message.LParam 属性

定义

指定消息的 LParam 字段。Specifies the LParam field of the message.

public:
 property IntPtr LParam { IntPtr get(); void set(IntPtr value); };
public IntPtr LParam { get; set; }
member this.LParam : nativeint with get, set
Public Property LParam As IntPtr

属性值

消息的 LParam 字段。The LParam field of the message.

注解

此字段的值取决于消息。The value of this field depends on the message. 使用 "LParam" 字段获取对处理消息很重要的信息。Use the LParam field to get information that is important for handling the message. 如果消息需要,通常使用 LParam 来存储对象。LParam is typically used to store an object if it is needed by the message. 使用 GetLParam 方法可以检索 LParam 字段中的信息并将其转换为对象。Use the GetLParam method to retrieve and convert information from the LParam field into an object.

适用于

另请参阅