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 );
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 );
拦截WM_IME_CHAR 效果不好,到现在我也没找到更好的方法拦截汉字。
I tryed WM_IME_CHAR message,but invalid.请问需拦截什么消息?关注!!!
HWND hwnd, // handle to window
UINT uMsg, // WM_IME_CHAR
WPARAM wParam, // character code
LPARAM lParam // key indicators
);
HWND hwnd, // handle to window
UINT uMsg, // WM_IME_CHAR
WPARAM wParam, // character code
LPARAM lParam // key indicators
);
http://playguy.onchina.net