Wince only. Enables IME on windows ce. this is required for any wince application to use IME. bug 297683. r/sr = dveditz

This commit is contained in:
dougt%meer.net 2006-05-30 20:57:07 +00:00
Родитель 69723823a0
Коммит f8eecefa2a
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -4715,10 +4715,26 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
SetWindowPos(hWndSIP, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
}
}
{
// Get current input context
HIMC hC = ImmGetContext(mWnd);
// Open the IME
ImmSetOpenStatus(hC, TRUE);
// Set "multi-press" input mode
ImmEscapeW(NULL, hC, IME_ESC_SET_MODE, (LPVOID)IM_SPELL);
}
#endif
break;
case WM_KILLFOCUS:
#ifdef WINCE
{
// Get current input context
HIMC hC = ImmGetContext(mWnd);
// Close the IME
ImmSetOpenStatus(hC, FALSE);
}
#endif
WCHAR className[kMaxClassNameLength];
::GetClassNameW((HWND)wParam, className, kMaxClassNameLength);
if (wcscmp(className, kWClassNameUI) &&