IME模式转换 [英] IME mode convert

查看:274
本文介绍了IME模式转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在屏幕键盘上写一个日语程序。当我使用ImmSetOpenStatus函数为焦点窗口打开IME作为MS词......但它总是失败。这是我的代码:

I''m wrinting a program that is Japanese on screen keyboard. When I use the ImmSetOpenStatus function to open IME for the focus windows as MS words... But it have been always failed. This is my code:

展开 | 选择 | Wrap | 行号

推荐答案

如果事情是,你不会检查任何返回值工作。


你用你的调试器调试过这个吗?
You are not checking any return values to se if things are working.

Hev you stepped though this with your debugger?


你好弱智,

谢谢你的回答。

是的,我已经逐步调试并将其放入日志文件中。它总是在ImmSetOpenStatus函数中失败。
Hi weaknessforcats,
Thank you for your answer.
Yes I have debugged step by step and put it to the log file. It always failed at the ImmSetOpenStatus function.



HIMC hIMC = ImmGetContext(wnd);
HIMC hIMC = ImmGetContext(wnd);



ImmGetContext是否返回非空HIMC?你不能检查。

Does ImmGetContext return a non-null HIMC? You don''t check.


这篇关于IME模式转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆