Jump to content

MLM_QUERYTEXTLENGTH

From EDM2
Revision as of 02:45, 28 April 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:MLM_QUERYTEXTLENGTH}} This message returns the number of characters in the text. ==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== ;iptText (IPT) - return: Count of text in bytes. ==Remarks== This message r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message returns the number of characters in the text.

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

iptText (IPT) - return
Count of text in bytes.

Remarks

This message returns the number of characters in the text. Hard line- breaks are counted as 1 and soft line-breaks as 0. This message differs from the WinQueryWindowTextLength call in that it returns a LONG.

Default Processing

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