Commit 70ad65d8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Move default window proc to IME window forwarding implementation from user32.

parent 51f414bd
......@@ -147,23 +147,6 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
}
}
/* fall through */
case WM_IME_STARTCOMPOSITION:
case WM_IME_ENDCOMPOSITION:
case WM_IME_SELECT:
case WM_IME_NOTIFY:
case WM_IME_CONTROL:
{
HWND hwndIME = ImmGetDefaultIMEWnd( hwnd );
if (hwndIME)
result = SendMessageA( hwndIME, msg, wParam, lParam );
}
break;
case WM_IME_SETCONTEXT:
{
HWND hwndIME = ImmGetDefaultIMEWnd( hwnd );
if (hwndIME) result = ImmIsUIMessageA( hwndIME, msg, wParam, lParam );
}
break;
default:
result = NtUserMessageCall( hwnd, msg, wParam, lParam, 0, NtUserDefWindowProc, TRUE );
......@@ -220,13 +203,6 @@ LRESULT WINAPI DefWindowProcW(
result = PostMessageW( hwnd, WM_KEYUP, wParam, lParam );
break;
case WM_IME_SETCONTEXT:
{
HWND hwndIME = ImmGetDefaultIMEWnd( hwnd );
if (hwndIME) result = ImmIsUIMessageW( hwndIME, msg, wParam, lParam );
}
break;
case WM_IME_COMPOSITION:
if (lParam & GCS_RESULTSTR)
{
......@@ -249,17 +225,6 @@ LRESULT WINAPI DefWindowProcW(
}
}
/* fall through */
case WM_IME_STARTCOMPOSITION:
case WM_IME_ENDCOMPOSITION:
case WM_IME_SELECT:
case WM_IME_NOTIFY:
case WM_IME_CONTROL:
{
HWND hwndIME = ImmGetDefaultIMEWnd( hwnd );
if (hwndIME)
result = SendMessageW( hwndIME, msg, wParam, lParam );
}
break;
default:
result = NtUserMessageCall( hwnd, msg, wParam, lParam, 0, NtUserDefWindowProc, FALSE );
......
......@@ -2901,6 +2901,21 @@ LRESULT default_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
free( win_array );
break;
}
case WM_IME_SETCONTEXT:
case WM_IME_COMPOSITION:
case WM_IME_STARTCOMPOSITION:
case WM_IME_ENDCOMPOSITION:
case WM_IME_SELECT:
case WM_IME_NOTIFY:
case WM_IME_CONTROL:
{
HWND ime_hwnd = get_default_ime_window( hwnd );
if (ime_hwnd)
result = NtUserMessageCall( ime_hwnd, msg, wparam, lparam,
0, NtUserSendMessage, ansi );
}
break;
}
return result;
......
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