Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CRichEditCtrl::SetTextMode

 

Sets the text mode or undo and redo level for a rich edit control.


      BOOL SetTextMode(
   UINT fMode 
);

fMode

Specifies the new settings for the control's text mode and undo level parameters. For a list of the possible values, see the mode parameter for EM_SETTEXTMODE in the Windows SDK.

Zero if successful, otherwise nonzero.

For a description of the text modes, see EM_SETTEXTMODE in the Windows SDK.

This member function fails if the control contains text. To make sure the control is empty, send a WM_SETTEXT message with an empty string.

Requirements

Header: afxcmn.h

Show: