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_LINEFROMCHAR (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
MLM_LINEFROMCHAR
mp1 = MPFROMLONG(lOffset);    /* offset of MLE character */
mp2 = 0L;                     /* not used, must be zero  */
 
An application sends an MLM_LINEFROMCHAR message to obtain the number of the
line that contains the specified character in a multiple-line entry field
(MLE).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
lOffset    Low and high word of mp1. Specifies the offset (number of
           characters from the beginning of the text) of the specified
           character. A value of -1 specifies that the number of the line
           that contains the cursor is returned. If the offset specified is
           greater than the total number of characters currently in the MLE,
           the number of the last line is returned.
 
Return Value
 
The return value is a 32-bit value (ULONG) that specifies the number of the
line that contains the specified character.
 
Comments
 
Line numbers are zero-based. Therefore, the first line in an MLE is zero.
 
See Also
 
MLM_CHARFROMLINE