Jump to content

MLM_QUERYLINELENGTH

From EDM2

This message returns the number of bytes between a given insertion point and the end of line.

Syntax

param1
IPT iptStart;    /* Insertion point to count from. */

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

Parameters

iptStart (IPT) - input
Insertion point to count from.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

iptLine (IPT) - return
Count of bytes to end of line.

Remarks

For any insertion point, the number of bytes between that insertion point and the end of the line is returned. If the insertion point is -1, the cursor position is used. If the line contains a hard line-break, it is counted as one byte.

The term line means a line on the display after the application of word-wrap. It does not mean a line as defined by the CR LF line-break sequence, although a display line might be terminated by such a sequence.

Default Processing

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