CNRDRAGINIT: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
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; | ||
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.