Help Center

CRichEdit.GetTextRangemethod

Retrieves a specified range of characters from a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION GetTextRange (BYVAL hRichEdit AS HWND, BYVAL lptrg AS TEXTRANGEW PTR) AS DWORD

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
lptrgPointer to a TEXTRANGEW structure that specifies the range of characters to retrieve and a buffer to copy the characters to.

Return value

The message returns the number of characters copied, not including the terminating null character.

Description

Retrieves a specified range of characters from a rich edit control.

Reference

  • Defined in AfxNova/CRichEdit.inc:717
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class