Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - IMM
Search - IMM - List
DL : 1
//以前一直没有注意到一个问题,就是用键盘钩子截获字符输入时是截不到特殊字符的,比方说中文输入法之类的. //后来用到了消息钩子去HOOK WM_IME_CHAR,这时候大部分已经能够获取了,但是对于其他一些程序,比方说 //WORD之类的也就不能截获了.后来到MSDN上查到, 要用到WM_IME_COMPOSITION消息,并且在处理该消息 //时要用到IMM的一些库函数从输入法数据区中获取.比方说ImmGetContext,ImmGetCompositionString等等.
Date : 2008-10-13 Size : 1.96kb User : lypdl

DL : 0
//以前一直没有注意到一个问题,就是用键盘钩子截获字符输入时是截不到特殊字符的,比方说中文输入法之类的. //后来用到了消息钩子去HOOK WM_IME_CHAR,这时候大部分已经能够获取了,但是对于其他一些程序,比方说 //WORD之类的也就不能截获了.后来到MSDN上查到, 要用到WM_IME_COMPOSITION消息,并且在处理该消息 //时要用到IMM的一些库函数从输入法数据区中获取.比方说ImmGetContext,ImmGetCompositionString等等. -//Has not been previously noted that one issue, that is intercepted by the keyboard hook input characters is less than cut-off special characters, such as Chinese input method, such as.// Later use the information to hook HOOK WM_IME_CHAR, this time the majority of has been able to obtain, but for some other procedures, for example,// WORD like it should not intercepted. later found on MSDN, take into account WM_IME_COMPOSITION news, and deal with the message// when to use IMM Some library functions from the input data area to obtain. For example ImmGetContext, ImmGetCompositionString and so on.
Date : 2026-01-01 Size : 2kb User : lypdl
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.