Help Center

CRichEdit.GetTextModemethod

Retrieves the current text mode and undo level of a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION GetTextMode (BYVAL hRichEdit AS HWND) AS DWORD

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
TM_PLAINTEXT1
TM_RICHTEXT2
TM_SINGLELEVELUNDO4
TM_MULTILEVELUNDO8
TM_SINGLECODEPAGE16
TM_MULTICODEPAGE32

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