TWMMouse represents a Windows mouse message.
TWMMouse = packed record Msg: Cardinal; Keys: Longint; case Integer of 0: (XPos: Smallint; YPos: Smallint;); 1: (Pos: TSmallPoint; Result: Longint;); end;
struct TWMMouse { unsigned Msg; Longint Keys; Smallint XPos; Smallint YPos; TSmallPoint Pos; Longint Result; };
TWMMouse is the data structure used for all Windows mouse messages. The Msg field is the Windows message code. The Keys field indicates whether various keys are down. It is a combination of the values listed in the following table.
|
Value |
Meaning |
|
MK_CONTROL |
The Control key is down. |
|
MK_LBUTTON |
The left mouse button is down. |
|
MK_MBUTTON |
The middle mouse button is down. |
|
MK_RBUTTON |
The right mouse button is down. |
|
MK_SHIFT |
The Shift key is down. |
The Pos field (or the XPos and YPos fields) indicates the global coordinates of the mouse pointer. The Result field holds the value returned by the application processing the message.
|
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|