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_SETREADONLY (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
MLM_SETREADONLY
mp1 = MPFROMSHORT(fReadOnly);    /* read-only flag         */
mp2 = 0L;                        /* not used, must be zero */
 
An application sends an MLM_SETREADONLY message to set the read-only state
of a multiple-line entry field (MLE). While the read-only state is set, the
user cannot change the contents of the MLE text.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
fReadOnly  Low word of mp1. Specifies the read-only state of the MLE. A
           value of TRUE sets the read-only state.
 
Return Value
 
The return value is the previous value of the read-only state. If the return
value is zero, the read-only state was turned off. If the return value is
nonzero, the read-only state was turned on.
 
See Also
 
MLM_QUERYREADONLY