CreateCaret resets caret position (while it shouldn't)