Help Center

CRichEdit.SetOptionsmethod

Sets the options for a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION SetOptions (BYVAL hRichEdit AS HWND, BYVAL fCoop AS LONG, BYVAL fOptions AS LONG) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
fCoopSpecifies the operation, which can be one of these values.
ECOOP_SET. Sets the options to those specified by fOptions.
ECOOP_OR. Combines the specified options with the current options.
ECOOP_AND. Retains only those current options that are also specified by fOptions.
ECOOP_XOR. Logically exclusive OR the current options with those specified by fOptions.
fOptionsSpecifies one or more of the following values.
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.

Description

Sets the options for a rich edit control.

Reference

  • Defined in AfxNova/CRichEdit.inc:1102
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class