Commit a1aff0ec authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

comctl32/edit: Handle IME composition result string only when EIMES_GETCOMPSTRATONCE is set.

If EIMES_GETCOMPSTRATONCE is not set, WM_IME_COMPOSITION with LPARAM set to GCS_RESULTSTR should be passed to the default window procedure according to MSDN. Fix some windows based on edit control not being able to input Chinese. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
parent b3b1cec0
......@@ -5062,6 +5062,12 @@ static LRESULT CALLBACK EDIT_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR
break;
case WM_IME_COMPOSITION:
if (lParam & GCS_RESULTSTR && !(es->ime_status & EIMES_GETCOMPSTRATONCE))
{
DefWindowProcW(hwnd, msg, wParam, lParam);
break;
}
EDIT_ImeComposition(hwnd, lParam, es);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment