This documentation is archived and is not being maintained.


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

BOOL SetTextMode(
   UINT 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 Platform SDK.

Zero if successful, otherwise nonzero.

For a description of the text modes, see EM_SETTEXTMODE in the Platform 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.