Since Scintilla sends its events to the parent window, you could replace the WindowFunc of the parent with your own.
Either create your own parent window and handle it manually, or use a Panel.
Either create your own parent window and handle it manually, or use a Panel.