◄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 ♦