积极答复者
在文本框中,用拼音输入法输入中文,在尚处于拼音输入法的选字状态下,能否获得此时用户输入的文字?

问题
-
在文本框中,用拼音输入法输入中文,在尚处于拼音输入法的选字状态下,能够获得此时用户输入的文字?
例如微软拼音输入,输入文字的时候,会有下划线,此时文字并没有真正输入到文本框里面,要按空格或者回车键才会输入的文本框中。我能够否获取在这个状态下用户究竟输入了什么呢?
da jia hao!- 已移动 Sheng Jiang 蒋晟Moderator 2009年11月11日 18:16 IME (发件人:Visual C#)
答案
-
用ImmGetCompositionString这个API获得
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 KeFang Chen 2009年11月17日 3:21
全部回复
-
用ImmGetCompositionString这个API获得
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 KeFang Chen 2009年11月17日 3:21