How To Suspend and Resume the Undo Functionality in Richedit 3.0 (199852)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
- the operating system: Microsoft Windows NT
This article was previously published under Q199852 SUMMARY
It is possible to suspend and resume the Undo operation in a Richedit version 3.0 control. The Undo() method in the ITextDocument interface accepts a long value "tomFalse" to suspend the Undo operation and "tomTrue" to resume the Undo operation. This method completely suspends the Undo operation; in other words, the Undo buffer is emptied. When the operation is resumed again, the Undo buffer is filled from the beginning.
If it is necessary to Undo an action that is performed before a suspend, after resuming the Undo, then, tomFalse must be replaced with "tomSuspend" and tomTrue must be replaced with "tomResume". This method retains the contents of the Undo buffer even when Undo is suspended.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbhowto kbRichEdit KB199852 |
---|
|