Jump to content

MLM_QUERYFORMATTEXTLENGTH

From EDM2

This message returns the length of a specified range of characters after the current formatting has been applied.

Syntax

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

param2
ULONG ulScan;  /* Number of characters to convert to bytes. */

Parameters

iptStart (IPT) - input
Insertion point to start from.
ulScan (ULONG) - input
Number of characters to convert to bytes.
0xFFFFFFFF: Convert until end of line.
Other: Convert specified number of characters.

Returns

ulText (ULONG) - return
Count of bytes in text after formatting.

Remarks

This message returns the length in bytes of a range of characters after the current formatting is applied. This differs from MLM_QUERYTEXTLENGTH in that:

  • A range of insertion points can be queried.
  • The byte count returned reflects the effects of the current formatting set
 by MLM_FORMAT.

Default Processing

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