TEXTMODE enumeration

0 out of 1 rated this helpful Rate this topic

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

Syntax

C++
typedef enum tagTextMode { 
  TM_PLAINTEXT        = 1,
  TM_RICHTEXT         = 2,
  TM_SINGLELEVELUNDO  = 4,
  TM_MULTILEVELUNDO   = 8,
  TM_SINGLECODEPAGE   = 16,
  TM_MULTICODEPAGE    = 32
} TEXTMODE;

Constants

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 Remarks section of EM_SETTEXTMODE.

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_SETUNDOLIMITmessage to set the maximum number of undo actions.

TM_SINGLECODEPAGE

The control only allows the English keyboard and a keyboard corresponding to the default character set. 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 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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Richedit.h

See also

Reference
EM_SETTEXTMODE
EM_GETTEXTMODE

 

你可能感兴趣的:(TEXTMODE enumeration)