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.
EM_SETREADONLY (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINENTRYFIELDS
 
EM_SETREADONLY
mp1 = MPFROMSHORT(fReadOnly);    /* read-only state        */
mp2 = 0L;                        /* not used, must be zero */
 
An application sends the EM_SETREADONLY message to set the read-only state
of an entry field.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
fReadOnly  Low word of mp1. Specifies whether to set or remove the read-only
           state of the entry field. A value of TRUE sets the state.
 
Return Value
 
The return value is TRUE if the read-only state is set; otherwise, it is
FALSE.
 
Comments
 
When the read-only state of an entry field is set, the user cannot change
the text within the entry field.
 
See Also
 
EM_QUERYREADONLY