Help Center

CRichEdit.GetTextExmethod

Retrieves all of the text from the rich edit control in any particular code base you want.

Windowsmethoddocumented

Syntax

FUNCTION GetTextEx (BYVAL hRichEdit AS HWND, BYVAL lpgtex AS GETTEXTEX PTR, BYVAL buffer AS ANY PTR) AS DWORD

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
lpgtexPointer to a GETTEXTEX structure, which indicates how to translate the text before putting it into the output buffer.
bufferPointer to the buffer to receive the text. The size of this buffer, in bytes, is specified by the cb member of the GETTEXTEX structure. Use the GetTextLength message to get the required size of the buffer.

Return value

The return value is the number of characters copied into the output buffer, not including the null terminator.

Description

Retrieves all of the text from the rich edit control in any particular code base you want.

Remarks

If the size of the output buffer is less than the size of the text in the control, the edit control will copy text from its beginning and place it in the buffer until the buffer is full. A terminating null character will still be placed at the end of the buffer.

Reference

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