CRichEdit.GetTextModemethod
Retrieves the current text mode and undo level of a rich edit control.
Syntax
FUNCTION GetTextMode (BYVAL hRichEdit AS HWND) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
TM_PLAINTEXT | 1 | |
TM_RICHTEXT | 2 | |
TM_SINGLELEVELUNDO | 4 | |
TM_MULTILEVELUNDO | 8 | |
TM_SINGLECODEPAGE | 16 | |
TM_MULTICODEPAGE | 32 |
Return value
The return value is one or more values from the TEXTMODE enumeration type. The values indicate the current text mode and undo level of the control.
Description
Retrieves the current text mode and undo level of a rich edit control.
Reference
- Defined in AfxNova/CRichEdit.inc:709
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class