CNRDRAGINIT: Difference between revisions
Appearance
Created page with "Structure that contains information about a direct manipulation event that is initiated in a container. This structure is used with the CN_INITDRAG notification code only. t..." |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Structure that contains information about a direct manipulation event that is initiated in a container. This structure is used with the CN_INITDRAG notification code only. | Structure that contains information about a direct manipulation event that is initiated in a container. This structure is used with the CN_INITDRAG notification code only. | ||
typedef struct _CNRDRAGINIT { | typedef struct _CNRDRAGINIT { | ||
HWND hwndCnr; | HWND hwndCnr; | ||
PRECORDCORE pRecord; | PRECORDCORE pRecord; | ||
LONG x; | LONG x; | ||
LONG y; | LONG y; | ||
LONG cx; | LONG cx; | ||
LONG cy; | LONG cy; | ||
} CNRDRAGINIT; | } CNRDRAGINIT; | ||
typedef CNRDRAGINIT * PCNRDRAGINIT ; | typedef CNRDRAGINIT * PCNRDRAGINIT ; | ||
; hwndCnr (HWND) | ;hwndCnr (HWND):Container control handle. | ||
:Container control handle. | ;pRecord (PRECORDCORE):Pointer to the RECORDCORE where direct manipulation started. | ||
; pRecord (PRECORDCORE) | |||
:Pointer to the RECORDCORE where direct manipulation started. | |||
:Note: If the CCS_MINIRECORDCORE style bit is specified when a container is created, then MINIRECORDCORE should be used instead of RECORDCORE and PMINIRECORDCORE should be used instead of PRECORDCORE in all applicable data structures and messages. | :Note: If the CCS_MINIRECORDCORE style bit is specified when a container is created, then MINIRECORDCORE should be used instead of RECORDCORE and PMINIRECORDCORE should be used instead of PRECORDCORE in all applicable data structures and messages. | ||
:The pRecord field can have one of the following values: | :The pRecord field can have one of the following values: | ||
: | ::NULL - Direct manipulation started over white space. | ||
::Other - Container record over which direct manipulation started. | |||
: | ;x (LONG):X-coordinate of the pointer of the pointing device in desktop coordinates. | ||
;y (LONG):Y-coordinate of the pointer of the pointing device in desktop coordinates. | |||
;x (LONG) | ;cx (LONG):X-offset from the hot spot of the pointer of the pointing device (in pels) to the record origin. | ||
:X-coordinate of the pointer of the pointing device in desktop coordinates. | ;cy (LONG):Y-offset from the hot spot of the pointer of the pointing device (in pels) to the record origin. | ||
;y (LONG) | |||
:Y-coordinate of the pointer of the pointing device in desktop coordinates. | |||
;cx (LONG) | |||
:X-offset from the hot spot of the pointer of the pointing device (in pels) to the record origin. | |||
;cy (LONG) | |||
:Y-offset from the hot spot of the pointer of the pointing device (in pels) to the record origin. | |||
[[Category:PM Data type]] | [[Category:PM Data type]] |
Latest revision as of 12:56, 2 April 2025
Structure that contains information about a direct manipulation event that is initiated in a container. This structure is used with the CN_INITDRAG notification code only.
typedef struct _CNRDRAGINIT { HWND hwndCnr; PRECORDCORE pRecord; LONG x; LONG y; LONG cx; LONG cy; } CNRDRAGINIT; typedef CNRDRAGINIT * PCNRDRAGINIT ;
- hwndCnr (HWND)
- Container control handle.
- pRecord (PRECORDCORE)
- Pointer to the RECORDCORE where direct manipulation started.
- Note: If the CCS_MINIRECORDCORE style bit is specified when a container is created, then MINIRECORDCORE should be used instead of RECORDCORE and PMINIRECORDCORE should be used instead of PRECORDCORE in all applicable data structures and messages.
- The pRecord field can have one of the following values:
- NULL - Direct manipulation started over white space.
- Other - Container record over which direct manipulation started.
- x (LONG)
- X-coordinate of the pointer of the pointing device in desktop coordinates.
- y (LONG)
- Y-coordinate of the pointer of the pointing device in desktop coordinates.
- cx (LONG)
- X-offset from the hot spot of the pointer of the pointing device (in pels) to the record origin.
- cy (LONG)
- Y-offset from the hot spot of the pointer of the pointing device (in pels) to the record origin.