Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 2001, Microsoft Corporation
  3. Module Name:
  4. defimehd.cpp
  5. Abstract:
  6. This file implements the default IME sub window handler Class.
  7. Author:
  8. Revision History:
  9. Notes:
  10. --*/
  11. #include "private.h"
  12. #include "uiwndhd.h"
  13. //+---------------------------------------------------------------------------
  14. //
  15. // CtfImeDispatchDefImeMessage
  16. //
  17. //+---------------------------------------------------------------------------
  18. LRESULT
  19. CtfImeDispatchDefImeMessage(
  20. HWND hDefImeWnd,
  21. UINT message,
  22. WPARAM wParam,
  23. LPARAM lParam)
  24. {
  25. if (!IsMsImeMessage(message))
  26. return 0;
  27. HKL hkl = GetKeyboardLayout(0);
  28. if (IS_IME_KBDLAYOUT(hkl))
  29. return 0;
  30. HWND hUIWnd = (HWND)SendMessage(hDefImeWnd,
  31. WM_IME_NOTIFY,
  32. IMN_PRIVATE_GETUIWND,
  33. 0);
  34. if (IsWindow(hUIWnd))
  35. return SendMessage(hUIWnd, message, wParam, lParam);
  36. return 0;
  37. }