Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
BOOL SetReadOnly( BOOL bReadOnly = TRUE );
Return Value
Nonzero if successful; otherwise, 0.
Parameters
bReadOnly
Indicates if this CRichEditCtrl object should be read only.
Remarks
Call this member function to change the ECO_READONLY option for this CRichEditCtrl object. 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 in the Win32 documentation.
Example
// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;
// Set the rich edit control to be read-only.
pmyRichEditCtrl->SetReadOnly(TRUE);
ASSERT(pmyRichEditCtrl->GetStyle() & ES_READONLY);