Winapi.Messages.TWMNCHitTest
Delphi
TWMNCHitTest = record
Msg: Cardinal;
MsgFiller: TDWordFiller;
Unused: WPARAM;
case Integer of
0: (
XPos: Smallint;
YPos: Smallint;
XYPosFiller: TDWordFiller);
1: (
Pos: TSmallPoint;
PosFiller: TDWordFiller;
Result: LRESULT);
end;
C++
struct DECLSPEC_DRECORD TWMNCHitTest
{
public:
unsigned Msg;
NativeUInt Unused;
public:
union
{
struct
{
System::Types::TSmallPoint Pos;
NativeInt Result;
};
struct
{
short XPos;
short YPos;
};
};
};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
record struct |
public | Winapi.Messages.pas Winapi.Messages.hpp |
Winapi.Messages | Winapi.Messages |
Description
TWMNCHitTest represents a Windows message sent when the cursor moves or when a mouse button is pressed or released.
TWMNCHitTest represents a Windows message sent when the cursor moves or when a mouse button is pressed or released.
The following table lists the fields contained by TWMNCHitTest.
Field | Meaning |
---|---|
Msg |
Represents the Windows message code. |
Unused |
Unused. |
Variant record |
You can either use XPos and YPos to specify the coordinates of the cursor, or Pos to specify the position and Result to specify the value returned by the application processing the message. |