Jump to content

MLM COPY

From EDM2
Revision as of 04:24, 25 April 2025 by Martini (talk | contribs) (Created page with "This message copies the current selection to 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 format. ==Remarks=== The multi-line...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message copies the current selection to 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 copying the selected text to the clipboard. The text is translated to standard clipboard format, which is the same as exporting with MLE_CFTEXT format.

The text is placed on the clipboard as a single contiguous data segment. This restricts the amount to the maximum segment size (64KB).

This may 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.