Bewerken

Delen via


EM_SETOPTIONS message

Sets the options for a rich edit control.

Parameters

wParam

Specifies the operation, which can be one of these values.

Value Meaning
ECOOP_SET
Sets the options to those specified by lParam.
ECOOP_OR
Combines the specified options with the current options.
ECOOP_AND
Retains only those current options that are also specified by lParam.
ECOOP_XOR
Logically exclusive OR the current options with those specified by lParam.

lParam

Specifies one or more of the following values.

Value Meaning
ECO_AUTOWORDSELECTION
Automatic selection of word on double-click.
ECO_AUTOVSCROLL
Same as ES_AUTOVSCROLL style.
ECO_AUTOHSCROLL
Same as ES_AUTOHSCROLL style.
ECO_NOHIDESEL
Same as ES_NOHIDESEL style.
ECO_READONLY
Same as ES_READONLY style.
ECO_WANTRETURN
Same as ES_WANTRETURN style.
ECO_SELECTIONBAR
Same as ES_SELECTIONBAR style.
ECO_VERTICAL
Same as ES_VERTICAL style. Available in Asian-language versions only.

Return value

This message returns the current options of the edit control.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Richedit.h

See also

Rich Edit Control Styles