Jump to content

EM SETREADONLY

From EDM2
Revision as of 01:58, 28 April 2025 by Martini (talk | contribs) (Created page with "This message sets the read only state of an entry field control. ==Syntax== <pre> param1 USHORT usReadOnly; Read only state indicator.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==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 s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.