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.

72 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1985 - 1999, Microsoft Corporation
  3. Module Name:
  4. langct.h
  5. Abstract:
  6. This file defines the LanguageCountry Class for each country.
  7. Author:
  8. Revision History:
  9. Notes:
  10. --*/
  11. #ifndef _LANGCT_H_
  12. #define _LANGCT_H_
  13. #include "language.h"
  14. class CLanguageCountry
  15. {
  16. public:
  17. CLanguageCountry(LANGID LangId);
  18. ~CLanguageCountry();
  19. CLanguage* language;
  20. /*
  21. * IActiveIME methods.
  22. */
  23. public:
  24. HRESULT Escape(UINT cp, HIMC hIMC, UINT uEscape, LPVOID lpData, LRESULT *plResult)
  25. {
  26. if (language)
  27. return language->Escape(cp, hIMC, uEscape, lpData, plResult);
  28. else
  29. return E_NOTIMPL;
  30. }
  31. /*
  32. * Local
  33. */
  34. public:
  35. HRESULT GetProperty(DWORD* property, DWORD* conversion_caps, DWORD* sentence_caps, DWORD* SCSCaps, DWORD* UICaps)
  36. {
  37. if (language)
  38. return language->GetProperty(property, conversion_caps, sentence_caps, SCSCaps, UICaps);
  39. else {
  40. *property =
  41. IME_PROP_UNICODE | // If set, the IME is viewed as a Unicode IME. The system and
  42. // the IME will communicate through the Unicode IME interface.
  43. // If clear, IME will use the ANSI interface to communicate
  44. // with the system.
  45. IME_PROP_AT_CARET; // If set, conversion window is at the caret position.
  46. *conversion_caps = 0;
  47. *sentence_caps = 0;
  48. *SCSCaps = 0;
  49. *UICaps = 0;
  50. return S_OK;
  51. }
  52. }
  53. };
  54. #endif // _LANGCT_H_