SetReadOnly
Sets the read-only option for this RichEdit control
BOOL SetReadOnly( BOOL bReadOnly = TRUE )
Nonzero if successful; otherwise, 0.
EX1
#include <..\OriginLab\DialogEx.h> #define IDC_RICHEDIT1 1001 void RichEdit_SetReadOnly(Dialog& EditBoxes) { RichEdit richEdit = EditBoxes.GetItem(IDC_RICHEDIT1); richEdit.SetReadOnly(FALSE); }
Control.h