msgs12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MLM_QUERYLINELENGTH (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
MLM_QUERYLINELENGTH
mp1 = MPFROMLONG(lOffset);    /* beginning of count     */
mp2 = 0L;                     /* not used, must be zero */
 
An application sends an MLM_QUERYLINELENGTH message to retrieve the number
of characters between the specified character and the beginning of the next
line in a multiple-line entry control (MLE).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
lOffset    Low and high word of mp1. Specifies the offset (number of
           characters from the beginning of the text) of the first character
           to count. If this parameter is set to -1, the current cursor
           position is used as the starting character.
 
Return Value
 
The return value is a 32-bit value (ULONG) that specifies the number of
characters between the specified character and the beginning of the next
line. If the specified character is on the last line of the MLE, the number
of characters to the end of that line is returned.
 
Comments
 
The line break at the end of the line is counted as a single character.
 
See Also
 
MLM_QUERYTEXTLENGTH