views:

63

answers:

0

For each key input, WndProc usually receives WM-KEY-DOWN and WM-KEY-UP. However, when IME is in conversion status for Asian languages, WndProc receive WM-IME-COMPOSITION and WM-KEY-UP. no WM-KEY-DOWN..

According to msdn([http://msdn.microsoft.com/en-us/library/dd374133%28VS.85%29.aspx%5D%5B1%5D), WM-IME-COMPOSITION message's wParam is..

DBCS character representing the latest change to the composition string.

If i can convert this DBCS character to a virtual key code, I still can simulate WM-KEY-DOWN. But i didn't succeed in doing so..

Any help will be greatly appreciated :)