Implements a Windows message.
Public Properties | |
| intptr | hwnd |
| Gets or sets the window handle of the message. | |
| uint32 | msg |
| Gets or sets the ID number for the message. | |
| intptr | wparam |
| Gets or sets the wparam field of the message. | |
| intptr | lparam |
| Sets the lparam field of the message. | |
| intptr | result |
| Gets or sets the value that is returned to Windows in response to handling the message. | |
Public Methods | |
| bool | equals (const xtd::object &obj) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| bool | equals (const message &other) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| xtd::usize | get_hash_code () const noexcept override |
| Serves as a hash function for a particular type. | |
| template<typename type_t> | |
| type_t | get_lparam () const noexcept |
| Gets the lparam value and converts the value to an object. | |
| xtd::string | to_msg_string () const noexcept |
| Returns a string that represents the msg property. | |
| xtd::string | to_string () const noexcept override |
| Returns a string that represents the current message. | |
Public Static Methods | |
| static message | create (intptr hwnd, int32 msg, intptr wparam, intptr lparam) |
| Creates a new message. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | equals (const message &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
overridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
inlinenoexcept |
Gets the lparam value and converts the value to an object.
| type | The type to use to create an instance. This type must be declared as a structure type. |
|
noexcept |
Returns a string that represents the msg property.
|
overridevirtualnoexcept |
Returns a string that represents the current message.
Reimplemented from xtd::object.
Creates a new message.
| hwnd | The window handle that the message is for. |
| msg | The message ID.The message ID. |
| wparam | The message wparam field. |
| lparam | The message lparam field. |
| intptr xtd::forms::message::hwnd |
Gets or sets the window handle of the message.
| hwnd | The window handle of the message. |
| uint32 xtd::forms::message::msg |
Gets or sets the ID number for the message.
| msg | The ID number for the message. |
| intptr xtd::forms::message::wparam |
Gets or sets the wparam field of the message.
| wparam | The wparam field of the message. |
| intptr xtd::forms::message::lparam |
Sets the lparam field of the message.
| lparam | The lparam field of the message. |
| intptr xtd::forms::message::result |
Gets or sets the value that is returned to Windows in response to handling the message.
| result | The return value of the message. |