Dylan Smith : richedit: Move message handling to function callable without window.