SetWordCharFormat can be undone??
-
In my MFC MDI app, when I call GetRichEditCtrl().SetWordCharFormat or GetRichEditCtrl().SetSelectionCharFormat to color a piece of text, and then press Ctrl+Z (or Edit->Undo), the formatting gets undone! Is there any way to tell the rich edit control not to allow this character formatting to be able to be undoable?
-
In my MFC MDI app, when I call GetRichEditCtrl().SetWordCharFormat or GetRichEditCtrl().SetSelectionCharFormat to color a piece of text, and then press Ctrl+Z (or Edit->Undo), the formatting gets undone! Is there any way to tell the rich edit control not to allow this character formatting to be able to be undoable?
Use
EmptyUndoBuffer()
.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
In my MFC MDI app, when I call GetRichEditCtrl().SetWordCharFormat or GetRichEditCtrl().SetSelectionCharFormat to color a piece of text, and then press Ctrl+Z (or Edit->Undo), the formatting gets undone! Is there any way to tell the rich edit control not to allow this character formatting to be able to be undoable?
I know of that, but what if before I call SetWordCharFormat the user has an operation that is undoable. If I called EmptyUndoBuffer, they would be unable to undo that operation they had "done" before I called SetWordCharFormat. There's got to be a solution :)