No cando. At best, you can completely clear the cancellation stack by sending EM_SETUNDOLIMIT twice. EM_SETTEXTEX offers the same option with the ST_DEFAULT flag. Surely not what you want. Take a look at ScintillaNET for a real editor.
Hans passant
source share