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_SETFIRSTCHAR (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
MLM_SETFIRSTCHAR
mp1 = MPFROMLONG(lOffChar);    /* insertion point        */
mp2 = 0L;                      /* not used, must be zero */
 
An application sends an MLM_SETFIRSTCHAR message to specify the first
visible character in a multiple-line entry field (MLE). The MLE scrolls the
text vertically and horizontally as needed to place the character in the
upper-left corner of the MLE window.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
lOffChar   Low and high word of mp1. Specifies the offset (number of
           characters from the beginning of the text) of the character to be
           placed in the upper-left corner of the MLE window.
 
Return Value
 
The return value is always TRUE.
 
Comments
 
If the value specified by the lOffChar parameter is greater than the total
number of characters in the MLE, the first visible character is set one
beyond the last character in the MLE.
 
See Also
 
MLM_QUERYFIRSTCHAR