Winapi.Messages.TMessage
Delphi
TMessage = record Msg: Cardinal; case Integer of 0: ( WParam: WPARAM; LParam: LPARAM; Result: LRESULT); 1: ( WParamLo: Word; WParamHi: Word; WParamFiller: TDWordFiller; LParamLo: Word; LParamHi: Word; LParamFiller: TDWordFiller; ResultLo: Word; ResultHi: Word; ResultFiller: TDWordFiller); end;
C++
struct DECLSPEC_DRECORD TMessage{ public: unsigned Msg; #pragma pack(push,1) union { struct { System::Word WParamLo; System::Word WParamHi; System::Word LParamLo; System::Word LParamHi; System::Word ResultLo; System::Word ResultHi; }; struct { NativeUInt WParam; NativeInt LParam; NativeInt Result; }; }; #pragma pack(pop) };
Contents |
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
record struct |
public | Winapi.Messages.pas Winapi.Messages.hpp |
Winapi.Messages | Winapi.Messages |
Description
TMessage represents a Windows message.
The TMessage type represents a Windows message in WndProc and other methods.
The TMessage contains the following fields:
| Field | Meaning |
|---|---|
|
Msg |
Represents the Windows Message code. |
|
|
Represents the |
|
|
Represents the |
|
|
Holds the return value. To access the low and high words of this field, use the |
|
|
Auxiliary fields used only under 64-bit platforms. These fields are used for padding not occupied high-order bytes in |
See Also
- Winapi.Messages.TDWordFiller
- Winapi.Messages.TWMKey
- Winapi.Messages.TWMMouse
- Winapi.Messages.TWMPaint
- Winapi.Messages.TWMMenuChar
- Winapi.Messages.TWMNotify
- Winapi.Messages.TWMLButtonDown