Jump to content

CNRDRAGINIT: Difference between revisions

From EDM2
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..."
 
Ak120 (talk | contribs)
mNo edit summary
Line 9: Line 9:
   LONG            cy;      /*  Y-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;
  } 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
::NULL - Direct manipulation started over white space.
        Direct manipulation started over white space.  
::Other - Container record over which direct manipulation started.
:;Other
;x (LONG):X-coordinate of the pointer of the pointing device in desktop coordinates.
        Container record over which direct manipulation started.  
;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]]

Revision as of 00:38, 30 May 2024

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.