CRichEdit.GetIMECompTextmethod
Retrieves the Input Method Editor (IME) composition text.
Syntax
FUNCTION GetIMECompText (BYVAL hRichEdit AS HWND, BYVAL lpict AS IMECOMPTEXT PTR, BYVAL buffer AS ANY PTR) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
lpict | A pointer to the IMECOMPTEXT structure. | |
buffer | The buffer that receives the composition text. The size of this buffer is contained in the cb member of the IMECOMPTEXT structure. |
Return value
If successful, the return value is the number of Unicode characters copied to the buffer. Otherwise, it is zero.
Description
Retrieves the Input Method Editor (IME) composition text.
Remarks
This message only takes Unicode strings.
Security Warning: Be sure to have a buffer sufficient for the size of the input. Failure to do so could cause problems for your application.
Reference
- Defined in AfxNova/CRichEdit.inc:479
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class