VC++环境下获取当前输入法名称
2009-06-02 11:06
525 查看
CString GetCurrentIme() { //LPDWORD pId; DWORD thId; //DWORD currentThId; HKL hkl; LPSTR buffer; buffer=new char[255]; ::memset(buffer,0,255); thId=::GetWindowThreadProcessId(gFocus,NULL); //currentThId=::GetCurrentThreadId(); //::AttachThreadInput(currentThId,thId,TRUE); hkl=::GetKeyboardLayout(thId); if (::ImmIsIME(hkl)) { ::ImmGetDescription(hkl,buffer,255); } else { ::ImmGetDescription(hkl,buffer,255); } //::MessageBox(NULL,buffer,"aaa",MB_OK); return buffer; }
相关文章推荐
- VC++环境下获取当前输入法名称
- VC环境下获取当前输入法
- 通过jquery 获取用户当前所在的城市名称和IP地址
- VC的控制台程序,如何获取输入参数和环境变量
- c# wince 下获取当前输入法状态
- vc CListCtrl 如何判断列表中的内容是否被选中?如何获取CListCtrl当前选中的行
- VC++获取当前系统时间日期 GetSystemTime()函数的用法
- iOS获取当前app的名称和版本号 配置属性
- JS获取当前页面名称
- phpcms v9如何获取文章的当前栏目名称
- VC获取当前路径
- VC++获取当前程序的目录
- Swift获取当前项目工程的名称版本等信息
- 获取当前输入法
- VC获取当前鼠标图片
- Android--获取当前系统的语言环境
- iOS获取当前网络环境的实现方法(推荐)
- 获取当前打印机的名称、驱动程序、打印端口信息
- phpcms v9 在当前栏目下获取父栏目与当前栏目的名称与连接
- 【转载】VC获取当前路径及程序名