Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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
 
 
                                     -♦-