In MFC how to achieve multilevel undo/redo operations for CRichEditCtrl?
-
I am typing the text and changing the color using SetSel() and SetSelectionFormat().On clicking ctrl+z single time I need to delete that text.I dont want to remember SetSel() and SetSelectionFormat() operations for undo. When I do ctrl+z second time, I need to do redo operation? How to achieve this? Or How to achieve multilevel undo/redo operations for CRichEditCtrl?
-
I am typing the text and changing the color using SetSel() and SetSelectionFormat().On clicking ctrl+z single time I need to delete that text.I dont want to remember SetSel() and SetSelectionFormat() operations for undo. When I do ctrl+z second time, I need to do redo operation? How to achieve this? Or How to achieve multilevel undo/redo operations for CRichEditCtrl?
Have a look at [Undo/Redo Manager](https://www.codeguru.com/cpp/misc/misc/article.php/c399/UndoRedo-Manager.htm)
-
I am typing the text and changing the color using SetSel() and SetSelectionFormat().On clicking ctrl+z single time I need to delete that text.I dont want to remember SetSel() and SetSelectionFormat() operations for undo. When I do ctrl+z second time, I need to do redo operation? How to achieve this? Or How to achieve multilevel undo/redo operations for CRichEditCtrl?