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
♦