CRichEditCtx.GetTextExmethod
Gets all of the text from the rich edit control in any particular code base you want.
Syntax
FUNCTION GetTextEx (BYREF gtex AS GETTEXTEX, BYVAL buffer AS ANY PTR) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
gtex | A GETTEXTEX structure which indicates how to translate the text before putting it into the output buffer. | |
buffer | Pointer 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 method 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
Gets 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/CRichEditCtx.inc:2372
- Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
- Topic: CRichEditCtx Class