"leanne" leanne@thizlinux.com wrote:
LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
case WM_IME_CHAR: charW = wParam; printf("DefWindowProcA WM_IME_CHAR %08x\n", charW); // I got it correct!
- 4f60 (unicode of "you" in Chinese)
//Is there something wrong here?
Something really wrong there. You shouldn't receive unicode characters in the ANSI (DefWindowProcA) message handler. Apparently mapping of WM_IME_CHAR and friends to/from unicode should be added in windows/winproc.c.
Just look how it was done for WM_CHAR, and try to add WM_IME_CHAR there.