如何使用VC ++代码显示IME Pad? [英] How to show IME Pad by using VC++ code?
问题描述
大家好。我刚开发了一个使用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。
<但是它在Windows 7(32位和64位)中不起作用,其IME的版本是IME 10.1或IME2010。
我找到了另一种方法来使用IImePad接口处理我的问题,但我不知道怎么办界面。有人可以给我一些示例代码吗?
请帮我解决这个问题。谢谢。
ps:我的邮箱是:fan1026@gmail.com
检查此链接
http://msdn.microsoft.com/en-us/library/aa939899%28v=winembedded.5%29.aspx
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: fan1026@gmail.com
check this link
http://msdn.microsoft.com/en-us/library/aa939899%28v=winembedded.5%29.aspx
这篇关于如何使用VC ++代码显示IME Pad?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!