EM SETREADONLY
Appearance
This message sets the read only state of an entry field control.
Syntax
param1 USHORT usReadOnly; /* Read only state indicator. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- usReadOnly (USHORT) - input
- Read only state indicator.
- TRUE: Enable read only state.
- FALSE: Disable read only state.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- rc (BOOL) - return
- Previous read only state indicator.
- TRUE: Read only state was previously enabled.
- FALSE: Read only state was previously disabled.
Remarks
The entry field control window procedure responds to this message by setting the read only state of the entry field control.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set rc to the default value of FALSE.