On Thu May 4 13:39:13 2023 +0000, Byeongsik Jeon wrote:
From additional tests it looks that like the composition string is
simply not updating the edit control selection or text until it is committed. This is probably because you're testing Japanese or Chinese IMEs. In this case, the composition string is handled in the ime_ui_window_proc. Because the MS native ime_ui_window_proc is currently implemented more complexly than Wine's, it looks as if the edit control is drawing. However, upon further investigation, this is not the case.
Hmm, I don't know, I've just been testing by updating the input context and sending WM_IME messages directly to the edit control, then checking with `EM_GETSEL` and `WM_GETTEXT` what effect they had.
I didn't see any change to the selection range or text until it a result string is committed when doing this. I didn't investigate very long anyway, and I think that keeping and displaying the composition string separately is an easier fix.