EM_STOPGROUPTYPING Message
An application sends an EM_STOPGROUPTYPING message to a rich edit control to stop the control from collecting additional typing actions into the current undo action. The control stores the next typing action, if any, into a new action in the undo queue.
Syntax
To send this message, call the
SendMessage
function as follows.
lResult = SendMessage(
| // returns LRESULT in lResult
|
(HWND) hWndControl,
| // handle to destination control
|
(UINT) EM_STOPGROUPTYPING,
| // message ID
|
(WPARAM) wParam,
| // = (WPARAM) () wParam; |
(LPARAM) lParam
| // = (LPARAM) () lParam; |
);
| |
Parameters
- wParam
-
Not used; must be zero.
- lParam
-
Not used; must be zero.
Return Value
The return value is zero. This message cannot fail.
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 EM_STOPGROUPTYPING message to break consecutive typing actions into smaller undo groups. For example, you could send EM_STOPGROUPTYPING after each character or at each word break.
Message Information
Header | Declared in Richedit.h |
---|
Minimum operating systems |
Windows 95 with Rich Edit 2.0
, Windows
98, Windows NT
4.0 |
---|
See Also
Rich Edit Controls, EM_UNDO