See wxMediaEdit::DoEdit (section ). A snip will get this message when its buffer gets the message, recusive is TRUE, and the snip owns the caret. Override this method for your own use.