Jump to content

CN DRAGLEAVE

From EDM2
Revision as of 19:36, 20 April 2025 by Martini (talk | contribs) (Created page with "This message is sent by the container control to its owner when the container receives a DM_DRAGLEAVE message. ==Syntax== <PRE> param1 USHORT id; Container control ID.: USHORT CN_DRAGLEAVE; Notification code.: param2 PCNRDRAGINFO pCnrDragInfo; Pointer to a CNRDRAGINFO structure.: </PRE> ==Parameters== ;id (USHORT) - Input : Container control ID. ;CN_DRAGLEAVE (USHORT) - Input : Notification code. ;pCnrDragInfo (PCNRDRAGINFO) -...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent by the container control to its owner when the container receives a DM_DRAGLEAVE message.

Syntax

param1
USHORT id;            /* Container control ID. */
USHORT CN_DRAGLEAVE;  /* Notification code. */

param2
PCNRDRAGINFO pCnrDragInfo; /* Pointer to a CNRDRAGINFO structure. */

Parameters

id (USHORT) - Input
Container control ID.
CN_DRAGLEAVE (USHORT) - Input
Notification code.
pCnrDragInfo (PCNRDRAGINFO) - Input
Pointer to a CNRDRAGINFO structure.

Returns

ulReserved (ULONG) - returns
Reserved value, should be 0.

Remarks

This notification code is sent to the owner of the container control in response to a DM_DRAGLEAVE message. It informs the owner that one of the following has occurred:

  • A container record was being dragged over the container and has left the container's boundaries.
  • The drag ended when help was requested or a user pressed the Esc key while the container record was over the container.

Default Processing

The default window procedure does not expect to receive this notification code and therefore takes no action on it other than to return 0.