Message Structure in System.Windows.Forms

Source: Internet
Author: User

Structural purpose Description implements a Windows message.

Properties

1.public IntPtr HWnd {get; set;}

Gets or sets the window handle of the message.

System. IntPtr A platform-specific type that's used to represent A pointer or A handle.

2.public IntPtr LParam {get; set;}
Specifies the LParam field of the message.
ReMarks:
The value of this field depends the message. Use the LParam field to get information, that's important for handling the message.

LParam is typically used to store a object if it is needed by the message. Use the Getlparam method to retrieve and convert information from the LParam field into an object.

This property is typically used to store an object required by the message, and the Getlparam method is used to retrieve and transform information from lparam to an object

3.public int MSG {get; set;}

Gets or sets the ID number for the message.

4.public IntPtr Result {get; set;}
Specifies the value is returned to Windows in response to handling the message.

5.public IntPtr WParam {get; set;}
Gets or sets the WParam field of the message.
ReMarks:
The value of this field depends the message. Use the WParam field to get information, that's important to handling the message.
This field was typically used to store small pieces of information, such as flags.

This property is typically used to hold small pieces of information, such as flag bits

Message Structure in System.Windows.Forms

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.