Winapi.Messages.TWMNCHitTest
From RAD Studio API Documentation
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; #pragma pack(push,1) union { struct { System::Types::TSmallPoint Pos; NativeInt Result; }; struct { short XPos; short YPos; }; }; #pragma pack(pop) };
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. |