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

TEXTRANGE

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

描述

 

The TEXTRANGE structure receives a range of text from a rich edit control. This structure is filled in by the EM_GETTEXTRANGE message. The buffer pointed to by the lpstrText member must be large enough to receive all characters and the terminating null character.

 

C/C++ 语法

 

typedef struct _textrange {

CHARRANGE chrg;

LPSTR lpstrText;

} TEXTRANGE;

 

FreeBasic Syntax

 

TYPE TEXTRANGEW

chrg      AS CHARRANGE

lpstrText AS LPWSTR

END TYPE

 

成员

 

chrg

 

A CHARRANGE structure that indicates the range of characters to retrieve.

 

lpstrText

 

Pointer to buffer that receives the text.

 

最低操作系统

 

Windows 95, Windows NT 4.0