Added handling of WM_IME_CHAR.

This commit is contained in:
Aric Stewart 2003-05-12 03:24:10 +00:00 committed by Alexandre Julliard
parent 49fef46967
commit 199449d60e
2 changed files with 14 additions and 0 deletions

View File

@ -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;

View File

@ -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;