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.

71 lines
2.4 KiB

  1. /**************************************************/
  2. /* */
  3. /* */
  4. /* Chinese IME Link Dialog Class */
  5. /* */
  6. /* */
  7. /* Copyright (c) 1997-1999 Microsoft Corporation. */
  8. /**************************************************/
  9. typedef struct _tagREGWORDSTRUCT {
  10. HKL hKL;
  11. BOOL bUpdate;
  12. TCHAR szIMEName[16];
  13. UINT uIMENameLen;
  14. TCHAR szReading[14];
  15. DWORD dwReadingLen;
  16. } REGWORDSTRUCT;
  17. typedef REGWORDSTRUCT FAR *LPREGWORDSTRUCT;
  18. typedef struct _tagIMELINKREGWORD {
  19. HIMC hOldIMC;
  20. HIMC hRegWordIMC;
  21. BOOL fCompMsg;
  22. UINT nEudcIMEs;
  23. UINT nCurrIME;
  24. TCHAR szEudcCodeString[4];
  25. REGWORDSTRUCT sRegWordStruct[1];
  26. } IMELINKREGWORD;
  27. typedef IMELINKREGWORD FAR *LPIMELINKREGWORD;
  28. typedef struct _tagIMERADICALRECT {
  29. UINT nStartIME;
  30. UINT nPerPageIMEs;
  31. SIZE lTextSize;
  32. SIZE lCurrReadingExtent;
  33. HWND hRegWordButton;
  34. HWND hScrollWnd;
  35. RECT rcRadical[1];
  36. } IMERADICALRECT;
  37. typedef IMERADICALRECT FAR *LPIMERADICALRECT;
  38. typedef struct _tagCOUNTRYSETTING {
  39. UINT uCodePage;
  40. LPCTSTR szCodePage;
  41. } COUNTRYSETTING;
  42. #define WM_EUDC_CODE (WM_USER + 0x0400)
  43. #define WM_EUDC_COMPMSG (WM_USER + 0x0401)
  44. #define WM_EUDC_SWITCHIME (WM_USER + 0x0402)
  45. #define WM_EUDC_REGISTER_BUTTON (WM_USER + 0x0403)
  46. #define UPDATE_NONE 0
  47. #define UPDATE_START 1
  48. #define UPDATE_FINISH 2
  49. #define UPDATE_ERROR 3
  50. #define UPDATE_REGISTERED 4
  51. #define GWLP_IMELINKREGWORD 0
  52. #define GWLP_RADICALRECT (GWLP_IMELINKREGWORD + sizeof(PVOID))
  53. #define UI_MARGIN 3
  54. #define CARET_MARGIN 2
  55. #define RECT_IMENAME 0
  56. #define RECT_RADICAL 1
  57. #define RECT_NUMBER (RECT_RADICAL + 1)
  58. #define UNICODE_CP 1200
  59. #define BIG5_CP 950
  60. #define ALT_BIG5_CP 938
  61. #define GB2312_CP 936
  62. #define SIGN_CWIN 0x4E495743
  63. #define SIGN__TBL 0x4C42545F
  64. #define ARRAYLEN(x) (sizeof(x) / sizeof((x)[0]))
  65. void ImeLink( HWND hWnd, UINT uCode, BOOL bUnicodeMode, HINSTANCE hInst);