Implements a Windows message.
Public Properties | |
| xtd::intptr | hwnd |
| Gets or sets the window handle of the message. | |
| xtd::uint32 | msg |
| Gets or sets the ID number for the message. | |
| xtd::intptr | wparam |
| Gets or sets the wparam field of the message. | |
| xtd::intptr | lparam |
| Sets the lparam field of the message. | |
| xtd::intptr | result |
| Gets or sets the value that is returned to Windows in response to handling the message. | |
Public Methods | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const message &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| template<typename type_t> | |
| auto | get_lparam () const noexcept -> type_t |
| Gets the lparam value and converts the value to an object. | |
| auto | to_msg_string () const noexcept -> xtd::string |
| Returns a string that represents the msg property. | |
| auto | to_string () const noexcept -> xtd::string override |
| Returns a string that represents the current message. | |
Public Static Methods | |
| static auto | create (xtd::intptr hwnd, xtd::uint32 msg, xtd::intptr wparam, xtd::intptr lparam) -> message |
| 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. | |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
inlinenodiscardnoexcept |
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. |
|
nodiscardnoexcept |
Returns a string that represents the msg property.
|
nodiscardoverridevirtualnoexcept |
Returns a string that represents the current message.
Reimplemented from xtd::object.
|
staticnodiscard |
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. |
| xtd::intptr xtd::forms::message::hwnd |
Gets or sets the window handle of the message.
| hwnd | The window handle of the message. |
| xtd::uint32 xtd::forms::message::msg |
Gets or sets the ID number for the message.
| msg | The ID number for the message. |
| xtd::intptr xtd::forms::message::wparam |
Gets or sets the wparam field of the message.
| wparam | The wparam field of the message. |
| xtd::intptr xtd::forms::message::lparam |
Sets the lparam field of the message.
| lparam | The lparam field of the message. |
| xtd::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. |