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 teminating null character.
pedef struct _textrange {
CHARRANGE chrg;
LPSTR lpstrText;
} TEXTRANGE;
Windows NT: Requires version 3.51 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in richedit.h.
Unicode: Defined as Unicode and ANSI structures.
Rich Edit Controls Overview, Rich Edit Structures, EM_GETTEXTRANGE