TMessage represents a Windows message.
TMessage = packed record Msg: Cardinal; case Integer of 0: (WParam: WPARAM; LParam: LPARAM; Result: LRESULT;); 1: (WParamLo: Word; WParamHi: Word; LParamLo: Word; LParamHi: Word; ResultLo: Word; ResultHi: Word;); end;
struct TMessage { unsigned Msg; WPARAM WParam; LPARAM LParam; LRESULT Result; Word WParamLo; Word WParamHi; Word LParamLo; Word LParamHi; Word ResultLo; Word ResultHi; };
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 |
Represents the WParam of the message. To access the low and high words of this field, use the WParamLo and WParamHi fields instead. |
LParam |
Represents the LParam of the message. To access the low and high words of this field, use the LParamLo and LParamHi fields instead. |
Result |
Holds the return value. To access the low and high words of this field, use the ResultLo and ResultHi fields instead. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|