MLM_QUERYFORMATLINELENGTH
Appearance
This message returns the number of bytes to end of line after formatting has been applied.
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, after the current formatting is applied. If the insertion point is -1, the cursor position is used. This message differs from MLM_QUERYLINELENGTH in that 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 iptLine to 0.