|
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.
|
|
intptr | __handle__ |
| Gets or sets the handle field of the message.
|
|
|
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::size | get_hash_code () const noexcept override |
| Serves as a hash function for a particular type.
|
|
template<class 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.
|
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<class object_t > |
xtd::uptr< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual bool | equals (const message &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type.
|
|
template<class object_a_t , class object_b_t > |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<class object_a_t , class object_b_t > |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
◆ equals() [1/2]
bool xtd::forms::message::equals |
( |
const xtd::object & |
obj | ) |
const |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
obj | The object to compare with the current object. |
- Returns
true
if the specified object is equal to the current object. otherwise, false
.
Reimplemented from xtd::object.
◆ equals() [2/2]
bool xtd::forms::message::equals |
( |
const message & |
other | ) |
const |
|
overridenoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
other | The object to compare with the current object. |
- Returns
true
if the specified object is equal to the current object. otherwise, false
.
◆ get_hash_code()
xtd::size xtd::forms::message::get_hash_code |
( |
| ) |
const |
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
- Returns
- A hash code for the current object.
Reimplemented from xtd::object.
◆ get_lparam()
template<class type_t >
type_t xtd::forms::message::get_lparam |
( |
| ) |
const |
|
inlinenoexcept |
Gets the lparam value and converts the value to an object.
- Template Parameters
-
type | The type to use to create an instance. This type must be declared as a structure type. |
- Returns
- An object that represents an instance of the class specified by the template parameter, with the data from the lparam field of the message.
◆ to_msg_string()
xtd::string xtd::forms::message::to_msg_string |
( |
| ) |
const |
|
noexcept |
Returns a string that represents the msg property.
- Returns
- A xtd::string that represents the msg property.
◆ to_string()
Returns a string that represents the current message.
- Returns
- A xtd::string that represents the current message.
Reimplemented from xtd::object.
◆ create()
Creates a new message.
- Parameters
-
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. |
- Returns
- A xtd::forms::message that represents the message that was created.
◆ hwnd
intptr xtd::forms::message::hwnd |
◆ msg
uint32 xtd::forms::message::msg |
◆ wparam
intptr xtd::forms::message::wparam |
Gets or sets the wparam field of the message.
- Parameters
-
wparam | The wparam field of the message. |
- Examples
- form_and_messages.cpp.
◆ lparam
intptr xtd::forms::message::lparam |
Sets the lparam field of the message.
- Parameters
-
lparam | The lparam field of the message. |
- Examples
- form_and_messages.cpp.
◆ result
intptr xtd::forms::message::result |
Gets or sets the value that is returned to Windows in response to handling the message.
- Parameters
-
result | The return value of the message. |
◆ __handle__
intptr xtd::forms::message::__handle__ |
Gets or sets the handle field of the message.
- Parameters
-
handle | The handle field of the message. |
- Warning
- Internal use only
The documentation for this struct was generated from the following file: