EM_SETOPTIONS

Sets the options for a rich edit control.

EM_SETOPTIONS
wParam = (WPARAM) (UINT) fOperation;
lParam = (LPARAM) (UINT) fOptions;

Parameters

fOperation

Operation flag. Can be one of these values:

ECOOP_SET Set the options to those specified by fOptions.
ECOOP_OR Combine the specified options with the current options.
ECOOP_AND Retain only those current options that are also specified by fOptions.
ECOOP_XOR Logically Exclusive OR the current options with those specified by fOptions.

fOptions

Rich edit control options. Can be a combination of these values:

Value Meaning
ECO_AUTOWORDSELECTION Automatic selection of word on doubleclick.
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_SAVESEL Same as ES_SAVESEL style.
ECO_SELECTIONBAR Same as ES_SELECTIONBAR style.
ECO_VERTICAL Same as ES_VERTICAL style. Available in Asian-language versions only.

Return Values

Returns current option of edit control.