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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值