Jump to content

EM PASTE

From EDM2
Revision as of 23:42, 14 April 2025 by Martini (talk | contribs) (Created page with "This message replaces the text that forms the current selection with text from the clipboard. ==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) - returns: Success indicator. :TRUE: Successful completion...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message replaces the text that forms the current selection with text from the clipboard.

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) - returns
Success indicator.
TRUE: Successful completion
FALSE: Error occurred. For example, if the text to be inserted does not fit in the entry field control without overflowing the text limit set by the EM_SETTEXTLIMIT message, in which instance no text is inserted.

Remarks

The entry field control window procedure responds to this message by replacing the text that forms the current selection with text from the clipboard, if the data is in CF_TEXT format. Only characters from the clipboard up to the first carriage return are used in the replacement.

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.