Jump to content

CN ENDEDIT

From EDM2
Revision as of 22:05, 20 April 2025 by Martini (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent by the container control to its owner whenever direct editing of container text has ended.

Syntax

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

param2
PCNREDITDATA pCnrEditData; /* Pointer to the CNREDITDATA structure. */

Parameters

id (USHORT) - Input
Container control ID.
CN_ENDEDIT (USHORT) - Input
Notification code.
pCnrEditData (PCNREDITDATA) - Input
Pointer to the CNREDITDATA structure.

Returns

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

Remarks

Direct editing of container text is completed. Any changes made to the text are saved when a user presses the select button outside the window that contains the multiple-line entry (MLE) field used to edit text in a container. However, a user can end the direct editing of text without saving any changes to the text by doing any of the following:

  • Pressing the Esc key
  • Dragging the container item that is being edited
  • Pressing the Alt key and the select button before direct editing of container text has ended
  • Scrolling the container window.

The CN_ENDEDIT notification code is sent to the application in each of these cases.

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.