I added a context menu to a MFC CRichEditCtrl, it includes a delete option which does:
ReplaceSel("",TRUE);
It appears to work but when I look at the undo log, it's not the same... we end up with characters being lost at the end of the sequence.
Any ideas how I can make my code be the same as what happens when you press DELETE? Or even reuse that default functionality?