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_SETWRAP (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
MLM_SETWRAP
mp1 = MPFROMSHORT(fWrap);    /* word-wrap flag         */
mp2 = 0L;                    /* not used, must be zero */
 
An application sends an MLM_SETWRAP message to set word-wrap mode in a
multiple-line entry field (MLE).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
fWrap      Low word of mp1. Specifies whether to turn word-wrap mode on or
           off. If this parameter is TRUE, word-wrapping is turned on. If it
           is FALSE, word-wrapping is turned off.
 
Return Value
 
The return value is TRUE if word-wrap mode is set as a result of this
message. Otherwise, the return value is FALSE, indicating that the word-wrap
mode cannot be changed.
 
Comments
 
Word-wrap mode affects only the visual display of the text. Line breaks
inserted by the user are not affected.
 
Word-wrap mode cannot be turned off while the text exceeds the format
rectangle specified in the MLM_SETFORMATRECT message. Word-wrap mode cannot
be turned on if the result of word-wrapping would cause the text to exceed
the format rectangle specified in the MLM_SETFORMATRECT message.
 
See Also
 
MLM_QUERYWRAP, MLM_SETFORMATRECT