Jump to content

EM CUT

From EDM2
Revision as of 01:53, 28 April 2025 by Martini (talk | contribs) (Created page with "This message copies the text that forms the current selection to the clipboard, and then deletes it from the entry field control. ==Syntax== <pre> param1 ULONG ulReserved; Reserved value, should be 0.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==Parameters== ;ulReserved (ULONG) - input: Reserved value, should be 0. ;ulReserved (ULONG) - input: Reserved value, should be 0. ==Returns== ;rc (BOOL) - return: Success indicator....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message copies the text that forms the current selection to the clipboard, and then deletes it from the entry field control.

Syntax

param1
ULONG ulReserved;  /* Reserved value, should be 0. */

param2
ULONG ulReserved;  /* Reserved value, should be 0. */

Parameters

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

Returns

rc (BOOL) - return
Success indicator.
TRUE: Successful completion.
FALSE: Error occurred.

Remarks

The entry field control window procedure responds to this message by copying the text that forms the current selection to the clipboard in CF_TEXT format, and then deleting it from the entry field control and setting usmaxsel equal to usminsel.

This message is the combination of a EM_COPY message followed by a EM_CLEAR message.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set rc to the default value of FALSE.