Source code of Windows XP (NT5)
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.

133 lines
5.6 KiB

  1. /*****************************************************************************/
  2. /* A W K K C . H */
  3. /* Copyright (C) 1994 Mictosoft. */
  4. /* */
  5. /* This header file is used IFAX IME */
  6. /*****************************************************************************/
  7. #define IR_OPENCANDIDATE 0x190 //
  8. #define IR_CHANGECANDIDATE 0x191 //
  9. #define IR_CLOSECANDIDATE 0x192 //
  10. #define IME_CAND_READ 1 //
  11. #define IME_SETACTIVECANDIDATE 0x60 // wParam = Cadidate string index.(1+)
  12. #define INPUT_MODE_WINDOW 100 // IFAX IME private function
  13. #define KOHO_LIST_WINDOW 101 // IFAX IME private function
  14. #define CANDIDATE_STRING 102 // IFAX IME private function
  15. typedef struct _tagCANDIDATELIST {
  16. DWORD dwSize; // Size of this data structure.
  17. DWORD dwStyle; // Style of candidate strings.
  18. DWORD dwNumCandStr; // Number of candidate strings.
  19. DWORD dwSelectedCand; // Index of a candidate string now selected.
  20. DWORD dwPreferNumPerPage; // NOT USE!
  21. DWORD dwCandStrOffset[]; // Candidate string offset.
  22. // CHAR chCandidateStr[]; // Candidate string.This must be ASCIIZ string.
  23. } CANDIDATELIST, FAR *LPCANDIDATELIST;
  24. /* ----------------------------------------------------------------------------
  25. wParam of SKM_IMESETOPEN message that is sent to ScreenKbdWndProc
  26. ------------------------------------------------------------------------- */
  27. #define KANA_CLOSE_IME 0
  28. #define KANA_OPEN_IME 1
  29. #define KANA_GYO_INDEX 2
  30. #define KANA_SEND_BS 3
  31. #define KANA_CONV_TBL 4
  32. #define KANA_OLD_TBL 5
  33. #define KANA_LB_HWND 6
  34. #define KANA_CNAGE_CONV 7
  35. #define FLUSH_UNDET 1
  36. #define FLUSH_UNDET_L 1L
  37. #define NUM_GYO_INDEX 10
  38. #define KANA_CLOSE_KAKUTEI 11
  39. #define KANA_CLOSE_CONV 12
  40. #define KANA_SEND_CLEAR 13
  41. #define KANA_SET_LB 14
  42. #define KANA_SEND_VK 15
  43. #define KANA_MOVE_CONV 16
  44. #define GET_KANA_GYO_INDEX 17
  45. #define GET_NUM_GYO_INDEX 18
  46. #define SET_KBD_OPENIME 19
  47. #define GET_KBD_OPENIME 20
  48. #define SET_KANA_SHIFT 21
  49. #define GET_KANA_SHIFT 22
  50. #define KANA_CLEAR_CONV 23
  51. #define KANA_SET_INIT 24
  52. /* ----------------------------------------------------------------------------
  53. { left, top, right, bottom } for KANA Keypads
  54. ------------------------------------------------------------------------- */
  55. #define ltrb_abc2 252,67,281,92
  56. #define ltrb_number2 281,67,311,92
  57. #define ltrb_kigou2 65,67, 94,92
  58. #define ltrb_sh_kana2 6,67, 36,92
  59. #define ltrb_w_kakute 210,67,249,92
  60. #define ltrb_sh_hira2 36,67, 65,92
  61. #define ltrb_1_1 6, 7, 32,32
  62. #define ltrb_1_2 37, 7, 63,32
  63. #define ltrb_1_3 68, 7, 94,32
  64. #define ltrb_1_4 99, 7,125,32
  65. #define ltrb_1_5 130, 7,156,32
  66. #define ltrb_1_6 161, 7,187,32
  67. #define ltrb_1_7 192, 7,218,32
  68. #define ltrb_1_8 223, 7,249,32
  69. #define ltrb_1_9 254, 7,280,32
  70. #define ltrb_1_10 285, 7,311,32
  71. #define ltrb_2_1 6,37, 32,62
  72. #define ltrb_2_2 37,37, 63,62
  73. #define ltrb_2_3 68,37, 94,62
  74. #define ltrb_2_4 99,37,125,62
  75. #define ltrb_2_5 130,37,156,62
  76. #define ltrb_2_6 161,37,187,62
  77. #define ltrb_2_7 192,37,218,62
  78. #define ltrb_2_8 223,37,249,62
  79. #define ltrb_2_9 254,37,280,62
  80. #define ltrb_2_10 285,37,311,62
  81. #define ltrb_kakute2 208,4,249,29
  82. #define ltrb_henkan2 153,4,203,29
  83. #define ltrb_zenkou2 99, 4,148,29
  84. #define ltrb_katakana2 20,200,35,230
  85. #define ltrb_hiragana2 40,200,55,230
  86. #define ltrb_han_kana2 60,200,75,230
  87. #define ltrb_bunsetsu2 80,200,95,230
  88. /**** Bellow xxx1 is old define . this is a save ****/
  89. /**** xxx2 is new define *******************/
  90. #define ltrb_abc3 252,4,281,29
  91. #define ltrb_number3 281,4,311,29
  92. #define ltrb_kigou3 65,4, 94,29
  93. #define ltrb_sh_kana3 6,4, 36,29
  94. #define ltrb_sh_hira3 36,4, 65,29
  95. #define ltrb_NumZen_1 79+25, 2, 119+25, 27
  96. #define ltrb_NumZen_2 125+25, 2, 165+25, 27
  97. #define ltrb_NumZen_3 171+25, 2, 211+25, 27
  98. #define ltrb_NumZen_4 79+25, 32, 119+25, 57
  99. #define ltrb_NumZen_5 125+25, 32, 165+25, 57
  100. #define ltrb_NumZen_6 171+25, 32, 211+25, 57
  101. #define ltrb_NumZen_7 79+25, 62, 119+25, 87
  102. #define ltrb_NumZen_8 125+25, 62, 165+25, 87
  103. #define ltrb_NumZen_9 171+25, 62, 211+25, 87
  104. #define ltrb_NumZen_0 125+25, 92, 165+25, 117
  105. #define ltrb_NumZen_ast 79+25, 92, 119+25, 117
  106. #define ltrb_NumZen_shp 171+25, 92, 211+25, 117
  107. #define ltrb_NumZen_prl 37, 2, 63, 27
  108. #define ltrb_NumZen_prr 69, 2, 95, 27
  109. #define ltrb_NumZen_unv 6, 2, 32, 27
  110. #define ltrb_NumZen_atm 6, 32, 32, 57
  111. #define ltrb_NumZen_plus 252, 32-30, 281, 57-30
  112. #define ltrb_NumZen_min 37+249-3, 32-30, 3+63+249-3, 57-30
  113. #define ltrb_NumZen_paus 37, 32, 95, 57
  114. #define ltrb_NumZen_henk 6, 92-30, 63+32, 117-30
  115. #define ltrb_NumZen_kaku 252, 62, 252+41, 87
  116. #define ltrb_NumZen_zen 252, 32, 281, 57
  117. /* ----------------------------------------------------------------------------
  118. key code to recognize ( if it's same as other VK key, change followings )
  119. --------------------------------------------------------------------------*/
  120. #define vENT_key 0x454e // for KAKUTE key : "en"
  121. #define vSP_key 0x5350 // for HENKAN key : "sp"