I don't know how to describe all the processes that I input the Chinese characters on SyntaxEditor with Chinese input methods.
But I've tried to log the windows message with "Microsoft SPY++" to explain what I did when I used the Chinese input methods on the control.
It might be helpful for you to solve this problem.
1~4 Control Focused
5~9 Input "C" character
10~14 Input "I" character
15~19 Press space
20~28 Change input method to Chinese
29~33 Input "C" character
34~37 Input "I" character
38~50 Press space
51~54 Control Lost Focus
<00001> 0001079A S WM_IME_SETCONTEXT fSet:1 (LONG)iShow:C000000F
<00002> 0001079A S WM_IME_NOTIFY dwCommand:00000002 dwData:00000000
<00003> 0001079A R WM_IME_NOTIFY
<00004> 0001079A R WM_IME_SETCONTEXT
<00005> 0001079A P WM_KEYDOWN nVirtKey:'C' cRepeat:1 ScanCode:2E fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00006> 0001079A P WM_CHAR chCharCode:'0043' (67) cRepeat:1 ScanCode:2E fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00007> 0001079A S WM_IME_NOTIFY dwCommand:0000000B dwData:00000000
<00008> 0001079A R WM_IME_NOTIFY
<00009> 0001079A P WM_KEYUP nVirtKey:'C' cRepeat:1 ScanCode:2E fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<00010> 0001079A P WM_KEYDOWN nVirtKey:'I' cRepeat:1 ScanCode:17 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00011> 0001079A P WM_CHAR chCharCode:'0049' (73) cRepeat:1 ScanCode:17 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00012> 0001079A S WM_IME_NOTIFY dwCommand:0000000B dwData:00000000
<00013> 0001079A R WM_IME_NOTIFY
<00014> 0001079A P WM_KEYUP nVirtKey:'I' cRepeat:1 ScanCode:17 fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<00015> 0001079A P WM_KEYDOWN nVirtKey:VK_SPACE cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00016> 0001079A P WM_CHAR chCharCode:'0020' (32) cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00017> 0001079A S WM_IME_NOTIFY dwCommand:0000000B dwData:00000000
<00018> 0001079A R WM_IME_NOTIFY
<00019> 0001079A P WM_KEYUP nVirtKey:VK_SPACE cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<00020> 0001079A P WM_KEYDOWN nVirtKey:VK_CONTROL cRepeat:1 ScanCode:1D fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00021> 0001079A S WM_IME_NOTIFY dwCommand:00000001 dwData:00000000
<00022> 0001079A R WM_IME_NOTIFY
<00023> 0001079A S WM_IME_NOTIFY dwCommand:00000002 dwData:00000000
<00024> 0001079A R WM_IME_NOTIFY
<00025> 0001079A S WM_IME_NOTIFY dwCommand:00000007 dwData:00000000
<00026> 0001079A R WM_IME_NOTIFY
<00027> 0001079A P WM_KEYUP nVirtKey:VK_SPACE cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<00028> 0001079A P WM_KEYUP nVirtKey:VK_CONTROL cRepeat:1 ScanCode:1D fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<00029> 0001079A P WM_KEYDOWN nVirtKey:VK_PROCESSKEY cRepeat:1 ScanCode:2E fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00030> 0001079A P WM_IME_STARTCOMPOSITION
<00031> 0001079A P WM_IME_COMPOSITION chDBCS:FF23 fFlags:01BF
<00032> 0001079A P WM_IME_NOTIFY dwCommand:00000005 dwData:00000001
<00033> 0001079A P WM_KEYUP nVirtKey:'C' cRepeat:1 ScanCode:2E fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<00034> 0001079A P WM_KEYDOWN nVirtKey:VK_PROCESSKEY cRepeat:1 ScanCode:17 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00035> 0001079A P WM_IME_COMPOSITION chDBCS:FF29 fFlags:01BF
<00036> 0001079A P WM_IME_NOTIFY dwCommand:00000003 dwData:00000001
<00037> 0001079A P WM_KEYUP nVirtKey:'I' cRepeat:1 ScanCode:17 fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<00038> 0001079A P WM_KEYDOWN nVirtKey:VK_PROCESSKEY cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00039> 0001079A P WM_IME_COMPOSITION chDBCS:0000 fFlags:1FBF
<00040> 0001079A S WM_IME_CHAR chCharCode:'00A4A4A4' (42148) cRepeat:1 ScanCode:00
<00041> 0001079A S WM_IME_NOTIFY dwCommand:0000000B dwData:00000000
<00042> 0001079A R WM_IME_NOTIFY
<00043> 0001079A R WM_IME_CHAR
<00044> 0001079A P WM_IME_NOTIFY dwCommand:00000004 dwData:00000001
<00045> 0001079A P WM_IME_ENDCOMPOSITION
<00046> 0001079A P WM_CHAR chCharCode:'.' (164) (lead) cRepeat:1 ScanCode:00 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00047> 0001079A P WM_CHAR chCharCode:'00A400A4' (164) (trail) cRepeat:1 ScanCode:00 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<00048> 0001079A S WM_IME_NOTIFY dwCommand:0000000B dwData:00000000
<00049> 0001079A R WM_IME_NOTIFY
<00050> 0001079A P WM_KEYUP nVirtKey:VK_SPACE cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<00051> 0001079A S WM_IME_SETCONTEXT fSet:0 (LONG)iShow:C000000F
<00052> 0001079A S WM_IME_NOTIFY dwCommand:00000001 dwData:00000000
<00053> 0001079A R WM_IME_NOTIFY
<00054> 0001079A R WM_IME_SETCONTEXT
[Modified at 11/23/2005 02:19 AM]