导航:  Windows Controls Procedures > Rich Edit Control > Structures >

SETTEXTEX

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

描述

 

The SETTEXTEX structure specifies which code page (if any) to use in setting text, whether the text replaces all the text in the control or just the selection, and whether the undo state is to be preserved.

 

C/C++ 语法

 

typedef struct _settextex {

DWORD flags;

UINT codepage;

} SETTEXTEX;

 

FreeBasic Syntax

 

TYPE SETTEXTEX

flags    AS DWORD

codepage AS UINT

END TYPE

 

成员

 

flags

 

Option flags. It can be any reasonable combination of the following flags.

 

ST_DEFAULT

Deletes the undo stack, discards rich-text formatting, replaces all text.

ST_KEEPUNDO

Keeps the undo stack.

ST_SELECTION

Replaces selection and keeps rich-text formatting.

 

codepage

 

The code page used to translate the text to Unicode. If codepage is 1200 (Unicode code page), no translation is done. If codepage is CP_ACP, the system code page is used.

 

最低操作系统

 

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