Jump to content

CNRDRAGINIT

From EDM2
Revision as of 19:43, 25 May 2024 by Martini (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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;  /*  Container control handle. */
  PRECORDCORE     pRecord;  /*  Pointer to the RECORDCORE where direct manipulation started. */
  LONG            x;        /*  X-coordinate of the pointer of the pointing device in desktop coordinates. */
  LONG            y;        /*  Y-coordinate of the pointer of the pointing device in desktop coordinates. */
  LONG            cx;       /*  X-offset from the hot spot of the pointer of the pointing device (in pels) to the record origin. */
  LONG            cy;       /*  Y-offset from the hot spot of the pointer of the pointing device (in pels) to the record origin. */
} 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.