Show: Delphi C++
Display Preferences

Winapi.Messages.TMessage

From RAD Studio API Documentation
Jump to: navigation, search

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;
public:
    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;
        };
    };
};

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.

WParam
WParamLo
WParamHi

Represents the WParam of the message. To access the low and high words of this field, use the WParamLo and WParamHi fields instead.

LParam
LParamLo
LParamHi

Represents the LParam of the message. To access the low and high words of this field, use the LParamLo and LParamHi fields instead.

Result
ResultLo
ResultHi

Holds the return value. To access the low and high words of this field, use the ResultLo and ResultHi fields instead.

WParamFiller
LParamFiller
ResultFiller

Auxiliary fields used only under 64-bit platforms. These fields are used for padding not occupied high-order bytes in WParam, LParam, and Result fields to align them on 64-bit boundaries native to 64-bit architecture.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance