CRichEditCtrl::SetReadOnly
Changes the ECO_READONLY option for this CRichEditCtrl object.
BOOL SetReadOnly(
BOOL bReadOnly = TRUE
);
Параметры
- bReadOnly
Indicates if this CRichEditCtrl object should be read only.
Возвращаемое значение
Nonzero if successful; otherwise, 0.
Заметки
For a brief description of this option, see SetOptions. You can use this function to set all the options for this CRichEditCtrl object.
For more information, see EM_SETREADONLY in the Windows SDK.
Пример
// Set the rich edit control to be read-only.
m_myRichEditCtrl.SetReadOnly(TRUE);
ASSERT(m_myRichEditCtrl.GetStyle() & ES_READONLY);
Требования
Header: afxcmn.h