CRichEditCtrl::SetOptions

void SetOptions( WORD wOp, DWORD dwFlags );

Parameters

wOp

Indicates the type of operation. One of the following values:

dwFlags

Rich edit options. The flag values are listed in the Remarks section.

Remarks

Call this function to set the options for this CRichEditCtrl object.

The options can be a combination of the following values:

For more information, see EM_SETOPTIONS in the Win32 documentation.

Example

// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;

// Add auto horizontal and vertical scrolling. 
pmyRichEditCtrl->SetOptions(ECOOP_OR, ECO_AUTOVSCROLL | 
   ECO_AUTOHSCROLL);

CRichEditCtrl OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::HideSelection, CRichEditCtrl::SetReadOnly