导航:  Windows Controls Procedures > Rich Edit Control > Enumerated Types >

TEXTMODE Enumerated Type

上一页返回章节概述下一页

描述

 

The TEXTMODE enumeration type indicates the text mode of a rich edit control. The EM_SETTEXTMODE and EM_GETTEXTMODE messages use this enumeration type.

 

常数

 

TM_PLAINTEXT = 1

TM_RICHTEXT = 2

TM_SINGLELEVELUNDO = 4

TM_MULTILEVELUNDO = 8

TM_SINGLECODEPAGE = 16

TM_MULTICODEPAGE = 32

 

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

The control only allows the English keyboard and a keyboard corresponding to the default charset. For example, you could have Greek and English. Note that this prevents Unicode text from entering the control. For example, use this value if a Microsoft Rich Edit control must be restricted to ANSI text.

TM_MULTICODEPAGE

The control allows multiple code pages and Unicode text into the control. This is the default setting.

 

Minimum operating systems

 

Windows 95 with Rich Edit 2.0, Windows 98, Windows NT 4.0