Jump to content

MLM PASTE

From EDM2
Revision as of 04:33, 25 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== ;ulCopy (ULONG) - return: Number of bytes transferred, counted in CF_TEXT f...")
(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

ulCopy (ULONG) - return
Number of bytes transferred, counted in CF_TEXT format.

Remarks=

The multi-line entry field control window procedure responds to this message by replacing the selected text with text from the clipboard. The text is translated from standard clipboard format, which is the same as importing with MLE_CFTEXT format.

The text is assumed to be in the clipboard as a single contiguous data segment. This restricts the amount to the maximum segment size (64Kb).

This can cause an overflow, see MLN_OVERFLOW.

Default Processing

The default window procedure takes no action on this message, other than to set ulCopy to 0.