本文介绍了如何使用VC ++代码显示IME Pad?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。我刚开发了一个使用VC ++代码显示IME(日语)pad的程序。
我的源代码如下:
HWND hMainWnd = AfxGetMainWnd() - > m_hWnd;
HWND hWnd = ImmGetDefaultIMEWnd(hMainWnd);
DWORD WM_MSIME_SHOWIMEPAD = RegisterWindowMessage(TEXT(" MSIMEShowImePad"));
if(hWnd){
:: SendMessage(hWnd,WM_MSIME_SHOWIMEPAD,1,1);
}
适用于Windows XP,其IME版本为IME2002。
我找到了另一种方法来使用IImePad接口处理我的问题,但我不知道怎么办界面。有人可以给我一些示例代码吗?
请帮我解决这个问题。谢谢。
ps:我的邮箱是:[email protected]
解决方案
Hello, everyone. I just developed an program to show IME(Japanese) pad by using VC++ code.
My source code is as below:
HWND hMainWnd = AfxGetMainWnd()->m_hWnd;
HWND hWnd = ImmGetDefaultIMEWnd(hMainWnd);
DWORD WM_MSIME_SHOWIMEPAD = RegisterWindowMessage(TEXT("MSIMEShowImePad"));
if (hWnd) {
::SendMessage(hWnd, WM_MSIME_SHOWIMEPAD, 1, 1);
}
It works in Windows XP whose IME's version is IME2002.
But it doesn't work in Windows 7 ( 32bit & 64bit ) whose IME's version is IME 10.1 or IME2010.
I found another way to handle my problem by using IImePad interface, but I don't know how to do with the interface. Could anybody can give me some example code?
Please help me to fix this problem. Thank you.
ps: my email is: [email protected]
解决方案
这篇关于如何使用VC ++代码显示IME Pad?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!