Help Center

CRichEditCtx.Optionsmethod

Gets/sets the options for a rich edit control.

Windowsmethoddocumented

Syntax

PRIVATE PROPERTY CRichEditCtx.Options () AS DWORD

Parameters

NameDescription
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

(GET) This message returns a combination of the current option flag values described in the fOptions parameter of the (SET) Options property.

(SET) This message returns the current options of the edit control. Call the (GET) Options property to get the values.

Description

Gets/sets the options for a rich edit control.

Example

(GET) PROPERTY Options () AS DWORD (SET) PROPERTY Options (BYVAL fCoop AS LONG, BYVAL fOptions AS LONG)

Reference

  • Defined in AfxNova/CRichEditCtx.inc:1436
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class