Help Center

CRichEditCtx.StopGroupTypingmethod

Stops the control from collecting additional typing actions into the current undo action.

Windowsmethoddocumented

Syntax

FUNCTION StopGroupTyping () AS DWORD

Return value

The return value is zero. This message cannot fail.

Description

Stops the control from collecting additional typing actions into the current undo action.

Remarks

A rich edit control groups consecutive typing actions, including characters deleted by using the BackSpace key, into a single undo action until one of the following events occurs:

  • The control receives an EM_STOPGROUPTYPING message.
  • The control loses focus.
  • The user moves the current selection, either by using the arrow keys or by clicking the mouse.
  • The user presses the Delete key.
  • The user performs any other action, such as a paste operation that does not involve typing.

You can send the RichEdit_StopGroupTyping message to break consecutive typing actions into smaller undo groups. For example, you could send RichEdit_StopGroupTyping after each character or at each word break.

Reference

  • Defined in AfxNova/CRichEditCtx.inc:3061
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class