HOOK高手,我想用HOOK拦截一个窗口中输入汉字的消息,请问需拦截什么消息?

解决方案 »

  1.   

    WH_KEYBOARD 没有用,这是个高难度的问题,比如在双拼下输入vsh5就得到"中华民族"四个汉字,在Hook里边只得到vsh5四个字符,如何得到"中华民族"呢???强烈关注!!!!!!!!!!!!!!!!!!先帮你顶.
      

  2.   

    Please help me !!!Thanks first!!!
      

  3.   

    hook its ASII code and try it
      

  4.   

    拦截 WM_CHAR 消息吧,一定行的:)
      

  5.   

    The WM_IME_CHAR message is sent to an application when the IME gets a character of the conversion result. Unlike the WM_CHAR message for a non-Unicode window, this message can include double-byte as well as single-byte character values. For a Unicode window, this message is the same as WM_CHAR. A window receives this message through its WindowProc function. LRESULT CALLBACK WindowProc(
      HWND hwnd,       // handle to window
      UINT uMsg,       // WM_IME_CHAR
      WPARAM wParam,   // character code
      LPARAM lParam    // key indicators
    );
      

  6.   

    The WM_IME_CHAR message is sent to an application when the IME gets a character of the conversion result. Unlike the WM_CHAR message for a non-Unicode window, this message can include double-byte as well as single-byte character values. For a Unicode window, this message is the same as WM_CHAR. A window receives this message through its WindowProc function. LRESULT CALLBACK WindowProc(
      HWND hwnd,       // handle to window
      UINT uMsg,       // WM_IME_CHAR
      WPARAM wParam,   // character code
      LPARAM lParam    // key indicators
    );
      

  7.   

    拦截WM_IME_CHAR 效果不好,到现在我也没找到更好的方法拦截汉字。
      

  8.   

    I tryed WM_IME_CHAR message,but invalid.请问需拦截什么消息?关注!!!
      

  9.   

    请参看:
    http://playguy.onchina.net