[This is preliminary documentation and subject to change.]
The TEXTMODE enumeration type contains values that indicate the text mode of a rich edit control. The EM_SETTEXTMODE and EM_GETTEXTMODE messages use this enumeration type.
typedef enum tagTextMode
{
TM_PLAINTEXT = 1,
TM_RICHTEXT = 2, // default behavior
TM_SINGLELEVELUNDO = 4,
TM_MULTILEVELUNDO = 8, // default behavior
TM_SINGLECODEPAGE = 16,
TM_MULTICODEPAGE = 32
} TEXTMODE;
Enumerator Value | Meaning |
---|---|
TM_PLAINTEXT | Indicates plain text mode, in which the control is similar to a standard edit control. For more information about plain text mode, see the following Remarks section. |
TM_RICHTEXT | Indicates rich text mode, in which the control has the standard rich edit functionality. Rich text mode is the default setting. |
TM_SINGLELEVELUNDO | The control allows the user to undo only the last action in the undo queue. |
TM_MULTILEVELUNDO | The control supports multiple undo actions. This is the default setting. Use the EM_SETUNDOLIMIT message to set the maximum number of undo actions. |
TM_SINGLECODEPAGE | Not supported. |
TM_MULTICODEPAGE | Not supported. |
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in richedit.h.
Rich Edit Controls Overview, Rich Edit Enumeration Types, EM_SETTEXTMODE, EM_GETTEXTMODE