From 199449d60ee3a30dc5b226c95d6e9d7a04c7b249 Mon Sep 17 00:00:00 2001 From: Aric Stewart <aric@codeweavers.com> Date: Mon, 12 May 2003 03:24:10 +0000 Subject: [PATCH] Added handling of WM_IME_CHAR. --- controls/combo.c | 1 + controls/edit.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/controls/combo.c b/controls/combo.c index 223a1cf6134..b4f7e1b7365 100644 --- a/controls/combo.c +++ b/controls/combo.c @@ -2063,6 +2063,7 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message, return 0; case WM_CHAR: + case WM_IME_CHAR: case WM_KEYDOWN: { HWND hwndTarget; diff --git a/controls/edit.c b/controls/edit.c index fee3ce6c84c..14e36294795 100644 --- a/controls/edit.c +++ b/controls/edit.c @@ -762,6 +762,19 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg, } break; + case WM_IME_CHAR: + if (!unicode) + { + WCHAR charW; + CHAR strng[2]; + + strng[0] = wParam >> 8; + strng[1] = wParam & 0xff; + MultiByteToWideChar(CP_ACP, 0, strng, 2, &charW, 1); + EDIT_WM_Char(es, charW); + break; + } + /* fall through */ case WM_CHAR: { WCHAR charW; -- GitLab