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_SETTEXTLIMIT (1.2)
◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMLE
MLM_SETTEXTLIMIT
mp1 = MPFROMLONG(cch); /* maximum number of characters */
mp2 = 0L; /* not used, must be zero */
An application sends an MLM_SETTEXTLIMIT message to set the text size of a
multiple-line entry field (MLE). The MLE does not accept any characters
beyond this limit.
Parameter Description
────────────────────────────────────────────────────────────────────────────
cch Low and high word of mp1. Specifies the maximum number of
characters allowed in the MLE. A value of -1 specifies unlimited
text is allowed.
Return Value
The return value is zero if the current MLE text is less than the new limit.
Otherwise, the return value is the number of characters that exceed the
specified limit, and the limit is not set.
Comments
If the user inserts more text than the specified maximum for the MLE, an
MLN_TEXTOVERFLOW message is sent. If the application inserts more text than
the specified maximum, an MLN_OVERFLOW notification message is sent.
See Also
MLM_QUERYTEXTLIMIT, MLN_OVERFLOW, MLN_TEXTOVERFLOW, WM_CONTROL
♦