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_FORMAT (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
MLM_FORMAT
mp1 = MPFROMSHORT(usFormat);    /* format to set          */
mp2 = 0L;                       /* not used, must be zero */
 
An application sends an MLM_FORMAT message to set the format for importing
to or exporting from a multiple-line entry field (MLE).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
usFormat   Low word of mp1. Specifies the format to set. This parameter can
           be one of the following values:
 
           Value          Meaning
           ─────────────────────────────────────────────────────────────────
           MLFIE_CFTEXT   Specifies the clipboard text format. This format
                          uses carriage-return/linefeed characters for line
                          breaks on export, and recognizes linefeed,
                          carriage-return/linefeed, or
                          linefeed/carriage-return characters for line
                          breaks on import. This is the default format.
 
           MLFIE_NOTRANS  Specifies a format that uses linefeed characters
                          for line breaks. This value guarantees that any
                          text imported into the MLE in this form can be
                          recovered in exactly the same form on export.
 
           MLFIE_WINFMT   Specifies the format of the MLE window. This
                          format recognizes carriage-return/linefeed
                          characters for line breaks on import. It ignores
                          the sequence
                          carriage-return/carriage-return/linefeed. On
                          export, it uses carriage-return/linefeed
                          characters to denote a hard line break and
                          carriage-return/carriage-return/linefeed
                          characters to denote a soft line break caused by
                          word-wrapping.
 
See Also
 
MLM_EXPORT, MLM_IMPORT, MLM_QUERYFORMATLINELENGTH,
MLM_QUERYFORMATTEXTLENGTH