Posted: Tue Jun 16, 2009 12:08 am |
|
 |
 |
You do not pull from clipboard, you simply wait for windows message.
In NJStar Communicator v2.73 or above:
1. NJStar will first check if the target windows can accept Unicode directly.
If Yes, NJStar will send the Cginese char via WM_UNICHAR message. It no goto 2.
If you are geting question marks (?) or under_scores, then your application has converted Unicode to DBCS incorrectly (by using English codepage).
[This is new in v2.7 and there is an option in IME Options to disable it by using Clipboard only].
2. NJStar put BOTH Unicode and DBCS on clipboard and send a CTRL+V to target window. When you received WM_PASTE message , you should get the CF_TEXT from clicpboard, or convert the CF_UNICODETEXT to any DBCS code you like.
|