Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
SetReadOnly
CEdit                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 Only
 
  BOOL SetReadOnly( BOOL bReadOnly = TRUE );
 
  Parameter   Description
 
  <bReadOnly> Specifies whether to set or remove the read-only state of
              the edit control. A value of TRUE sets the state to
              read-only; a value of FALSE sets the state to read/write.
 
  Remarks
 
  An application calls the SetReadOnly member function to set the
  read-only state of an edit control.
 
  The current setting can be found by testing the ES_READONLY flag in
  the return value of CWnd::GetStyle.
 
  Return Value
 
  Nonzero if the operation is successful, or 0 if an error occurs.
 
  See Also
 
  EM_SETREADONLY, CWnd::GetStyle
 
 
                                     -♦-