Hi, Eli, I modified the code processing WM_EMACS_IME_STATUS,  no need to get status of IME, just change IME status by the argument. If the user want to get status of IME to control IME status, he can write some lisp to do it. and I modifed w32-get-ime-open-status(), get hwnd from FRAME_W32_WINDOW (SELECTED_FRAME ()). ------------------ 原始邮件 ------------------ 发件人: "Eli Zaretskii"