RichEdit::SetReadOnly

Description

Sets the read-only option for this RichEdit control

Syntax

BOOL SetReadOnly( BOOL bReadOnly = TRUE )

Parameters

bReadOnly
Indicates if this RichEdit control should be read only.

Return

Nonzero if successful; otherwise, 0.

Examples

EX1

#include <..\OriginLab\DialogEx.h>
#define IDC_RICHEDIT1 1001

void RichEdit_SetReadOnly(Dialog& EditBoxes)
{
RichEdit richEdit = EditBoxes.GetItem(IDC_RICHEDIT1);
richEdit.SetReadOnly(FALSE);
}

Remark

See Also

header to Include

Control.h