Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经实现了一个Textbox支持文本输入的用户。
Textbox
如果我选择 IME Japanase(或其他亚洲输入法)作为我当前的输入并输入一些文本,当文本发送到控件时,OnKeyPress每个字符都会调用两次。
OnKeyPress
实际上ProcessKeyEventArgs被称为一次 withWM_CHAR和一次 with WM_IME_CHAR。最后OnKeyPress用相同的输入调用两次。
ProcessKeyEventArgs
WM_CHAR
WM_IME_CHAR