Quote Originally Posted by Krool View Post
It seems the "MS RichTextBox" (RICHTX32.OCX) also seems to trigger CanUndo on .SelText.
So, in the next update I will change wparam from 0 to 1 on EM_REPLACESEL. (for both, RichTextBox and TextBoxW)
I tested it and the standard textbox doesn't allow to undo the action after a selection is replaced by code, unlike the RichTextBox.