当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 一个实现全局钩子的dll工程中: (部分代码) keyboardhook.cpp://含有全局钩子类的实现 #pragma data_seg("mydata") hhook g_hhook = null; //钩子句柄 hinstance g_hinstance; //dll实例句柄 #pragma data_seg() bool keyboardhook::sta......
 ·    »显示摘要«
    摘要: 完全填充和增量填充的区别 ......


自己做了个编辑框,想实现只接受字符,屏蔽输入法的功能,怎么做

我用ImmSetOpenStatus(himc,false)到是好用,但是一按CTRL+空格输入法就又恢复了。  
  用ImmDisableIME的话,一下把一个Thread的输入法全都屏蔽了,而不是只屏蔽当前的编辑框,而且ImmDisableIME只在win98以后好用,win95不能用,disable后我还不知道怎么恢复,郁闷。  
  有高手知道怎么办可以很好的控制屏蔽输入法吗?请教!

NO.1   作者: pomelowu

WindowProc中截获WM_INPUTLANGCHANGE消息……

NO.2   作者: laiyiling

try   to   use  
  BOOL   ImmDisableIME(DWORD   idThread);

NO.3   作者: nkwesley

ImmDisableIME  
  The   ImmDisableIME   function   disables   the   input   method   editor   (IME)   for   a   thread   or   all   threads   in   a   process.  
   
  BOOL   ImmDisableIME(  
      DWORD   idThread    
  );  
 


 ·[msn群],技术讨论群    »显示摘要«
    摘要: 刚下在了msn群,申请了一个 群号为 40269 .net技术讨论,欢迎加入 加入办法: 到http://www.msngroup.cn/download.htm下载msn群插件,安装好以后就可以 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE