Jump to content

MLM_QUERYFORMATTEXTLENGTH

From EDM2
Revision as of 02:39, 28 April 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:MLM_QUERYFORMATTEXTLENGTH}} This message returns the length of a specified range of characters after the current formatting has been applied. ==Syntax== <pre> param1 IPT iptStart; Insertion point to start from.: param2 ULONG ulScan; Number of characters to convert to bytes.: </pre> ==Parameters== ;iptStart (IPT) - input: Insertion point to start from. ;ulScan (ULONG) - input: Number of characters to convert to bytes. ::0xFFFFFFFF: Con...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.