MLM_QUERYTEXTLENGTH
Appearance
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.