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.

380 lines
20 KiB

  1. /*++
  2. Copyright (c) 1990-1999 Microsoft Corporation, All Rights Reserved
  3. Module Name:
  4. data.c
  5. ++*/
  6. #include <windows.h>
  7. #include <immdev.h>
  8. #include "imedefs.h"
  9. #pragma data_seg(".ShareDate")
  10. IMEG sImeG = {0};
  11. #ifdef UNICODE
  12. TCHAR SKLayout[NumsSK][MAXSOFTKEYS] = {
  13. 0x3000, 0xFF10, 0xFF11, 0xFF12, 0xFF13, 0xFF14, 0xFF15, 0xFF16,
  14. 0xFF17, 0xFF18, 0xFF19, 0xFF41, 0xFF42, 0xFF43, 0xFF44, 0xFF45,
  15. 0xFF46, 0xFF47, 0xFF48, 0xFF49, 0xFF4A, 0xFF4B, 0xFF4C, 0xFF4D,
  16. 0xFF4E, 0xFF4F, 0xFF50, 0xFF51, 0xFF52, 0xFF53, 0xFF54, 0xFF55,
  17. 0xFF56, 0xFF57, 0xFF58, 0xFF59, 0xFF5A, 0xFF1B, 0xFF1D, 0xFF0C,
  18. 0xFF0D, 0xFF0E, 0xFF0F, 0xFF40, 0xFF3B, 0xFF3C, 0xFF3D, 0xFF07,
  19. 0x3000, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  20. 0x0020, 0x0020, 0x0020, 0x03BA, 0x03C7, 0x03C5, 0x03BC, 0x03B3,
  21. 0x03BD, 0x03BE, 0x03BF, 0x03B8, 0x03C0, 0x03C1, 0x0020, 0x03C9,
  22. 0x03C8, 0x03B9, 0x0020, 0x03B1, 0x03B4, 0x03BB, 0x03B5, 0x03B7,
  23. 0x03C6, 0x03B2, 0x03C4, 0x03B6, 0x03C3, 0x0020, 0x0020, 0x0020,
  24. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  25. 0x3000, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  26. 0x0020, 0x0020, 0x0020, 0x043B, 0x044A, 0x0448, 0x043D, 0x0432,
  27. 0x043E, 0x043F, 0x0440, 0x0436, 0x0441, 0x0442, 0x0443, 0x044C,
  28. 0x044B, 0x0437, 0x0438, 0x0430, 0x0433, 0x043C, 0x0434, 0x0451,
  29. 0x0449, 0x0431, 0x0447, 0x0435, 0x0446, 0x0444, 0x0020, 0x044D,
  30. 0x0020, 0x044E, 0x044F, 0x0020, 0x0439, 0x0020, 0x043A, 0x0445,
  31. 0x3000, 0x3122, 0x3105, 0x3109, 0x02C7, 0x02CB, 0x3113, 0x02CA,
  32. 0x02D9, 0x311A, 0x311E, 0x3107, 0x3116, 0x310F, 0x310E, 0x310D,
  33. 0x3111, 0x3115, 0x3118, 0x311B, 0x3128, 0x311C, 0x3120, 0x3129,
  34. 0x3119, 0x311F, 0x3123, 0x3106, 0x3110, 0x310B, 0x3114, 0x3127,
  35. 0x3112, 0x310A, 0x310C, 0x3117, 0x3108, 0x3124, 0x0020, 0x311D,
  36. 0x3126, 0x3121, 0x3125, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  37. 0x3000, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  38. 0x0020, 0x0020, 0x0020, 0x0113, 0x0020, 0x01D4, 0x011B, 0x01CE,
  39. 0x00E8, 0x0020, 0x012B, 0x01D2, 0x00ED, 0x01D0, 0x00EC, 0x01D8,
  40. 0x01D6, 0x00F2, 0x0020, 0x0101, 0x00E0, 0x00E9, 0x0020, 0x00F3,
  41. 0x00F9, 0x00E1, 0x00FA, 0x014D, 0x016B, 0x0020, 0x0020, 0x01DA,
  42. 0x0020, 0x01DC, 0x00FC, 0x0020, 0x00EA, 0x0020, 0x0020, 0x0020,
  43. 0x3000, 0x0020, 0x3043, 0x3045, 0x3047, 0x3049, 0x304B, 0x304D,
  44. 0x304F, 0x3051, 0x3053, 0x306A, 0x3082, 0x3080, 0x306C, 0x3059,
  45. 0x306D, 0x306E, 0x306F, 0x3064, 0x3072, 0x3075, 0x3078, 0x3085,
  46. 0x3083, 0x3063, 0x3066, 0x3055, 0x305B, 0x306B, 0x305D, 0x3061,
  47. 0x3081, 0x3057, 0x307F, 0x305F, 0x307E, 0x307B, 0x0020, 0x3087,
  48. 0x3093, 0x308E, 0x3092, 0x3041, 0x3068, 0x0020, 0x3090, 0x3091,
  49. 0x3000, 0x30B1, 0x30A3, 0x30A5, 0x30F4, 0x30A7, 0x30A9, 0x30AB,
  50. 0x30F5, 0x30AD, 0x30AF, 0x30CA, 0x30E2, 0x30E0, 0x30CC, 0x30B9,
  51. 0x30CD, 0x30CE, 0x30CF, 0x30C4, 0x30D2, 0x30D5, 0x30D8, 0x30E5,
  52. 0x30E3, 0x30C3, 0x30C6, 0x30B5, 0x30BB, 0x30CB, 0x30BD, 0x30C1,
  53. 0x30E1, 0x30B7, 0x30DF, 0x30BF, 0x30DE, 0x30DB, 0x30B3, 0x30E7,
  54. 0x30F6, 0x30EE, 0x30F2, 0x30A1, 0x30C8, 0x30F3, 0x30F0, 0x30F1,
  55. 0x3000, 0x02C9, 0xFF0C, 0x3001, 0xFF1B, 0xFF1A, 0xFF1F, 0xFF01,
  56. 0x2026, 0x2014, 0x00B7, 0x3014, 0xFF08, 0x3010, 0x3008, 0x201C,
  57. 0x3009, 0x300A, 0x300B, 0x2236, 0x300C, 0x300D, 0x300E, 0xFF3B,
  58. 0xFF09, 0xFF02, 0xFF07, 0x2018, 0x201D, 0x3015, 0x3005, 0x2016,
  59. 0x3011, 0x2019, 0x3017, 0xFF5E, 0x3016, 0x300F, 0x00A8, 0xFF3D,
  60. 0x02C7, 0xFF5B, 0xFF5D, 0x3002, 0xFF40, 0x3003, 0xFF5C, 0xFF0E,
  61. 0x3000, 0x216A, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166,
  62. 0x2167, 0x2168, 0x2169, 0x3220, 0x2478, 0x2476, 0x3222, 0x248A,
  63. 0x3223, 0x3224, 0x3225, 0x248F, 0x3226, 0x3227, 0x3228, 0x247A,
  64. 0x2479, 0x2490, 0x2491, 0x2488, 0x248B, 0x3221, 0x248C, 0x248E,
  65. 0x2477, 0x2489, 0x2475, 0x248D, 0x2474, 0x3229, 0x0020, 0x247B,
  66. 0x216B, 0x247C, 0x247D, 0x2160, 0x0020, 0x0020, 0x0020, 0x0020,
  67. 0x3000, 0x0020, 0x2261, 0x2260, 0xFF1D, 0x2264, 0x2265, 0xFF1C,
  68. 0xFF1E, 0x226E, 0x226F, 0x2227, 0x2299, 0x2220, 0x2211, 0xFF0D,
  69. 0x220F, 0x222A, 0x2229, 0x222B, 0x2208, 0x0020, 0x2235, 0x223D,
  70. 0x224C, 0x222E, 0x221D, 0x00B1, 0x00D7, 0x2228, 0x00F7, 0x0020,
  71. 0x2312, 0xFF0B, 0x2225, 0xFF0F, 0x22A5, 0x2234, 0x0020, 0x0020,
  72. 0x2237, 0x221A, 0x0020, 0x2248, 0x221E, 0x0020, 0x0020, 0x0020,
  73. 0x3000, 0x00A4, 0x00B0, 0x2032, 0x2033, 0xFF04, 0xFFE1, 0xFFE5,
  74. 0x2030, 0xFF05, 0x2103, 0x767E, 0x0020, 0x6BEB, 0x4E07, 0x4E8C,
  75. 0x4EBF, 0x5146, 0x5409, 0x4E03, 0x592A, 0x62CD, 0x827E, 0x0020,
  76. 0x0020, 0x516B, 0x4E5D, 0x25CB, 0x4E09, 0x5343, 0x56DB, 0x516D,
  77. 0x5FAE, 0x4E00, 0x5398, 0x4E94, 0x5206, 0x0020, 0x0020, 0x0020,
  78. 0xFFE0, 0x0020, 0x0020, 0x0020, 0x5341, 0x0020, 0x0020, 0x0020,
  79. 0x3000, 0x2504, 0x250D, 0x250E, 0x250F, 0x2510, 0x2511, 0x2512,
  80. 0x2513, 0x0020, 0x2500, 0x252C, 0x2540, 0x253E, 0x252E, 0x251E,
  81. 0x252F, 0x2530, 0x2531, 0x2523, 0x2532, 0x2533, 0x0020, 0x2542,
  82. 0x2541, 0x0020, 0x2502, 0x251C, 0x251F, 0x252D, 0x2520, 0x2522,
  83. 0x253F, 0x251D, 0x253D, 0x2521, 0x253C, 0x0020, 0x0020, 0x2543,
  84. 0x2508, 0x0020, 0x0020, 0x250C, 0x2506, 0x0020, 0x250A, 0x0020,
  85. 0x3000, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  86. 0x0020, 0x0020, 0x0020, 0x25A0, 0xFF3E, 0xFF20, 0x25B2, 0x2606,
  87. 0x203B, 0x2192, 0x2190, 0x25C7, 0x2191, 0x2193, 0x3013, 0xFFE3,
  88. 0xFF3F, 0x25C6, 0x25A1, 0x00A7, 0x2605, 0x25B3, 0x25CB, 0x25CE,
  89. 0xFF3C, 0x2116, 0xFF06, 0x25CF, 0xFF03, 0x0020, 0x0020, 0x0020,
  90. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  91. };
  92. TCHAR SKLayoutS[NumsSK][MAXSOFTKEYS] = {
  93. 0x3000, 0xFF09, 0xFF01, 0xFF20, 0xFF03, 0xFF04, 0xFF05, 0xFF3E,
  94. 0xFF06, 0xFF0A, 0xFF08, 0xFF21, 0xFF22, 0xFF23, 0xFF24, 0xFF25,
  95. 0xFF26, 0xFF27, 0xFF28, 0xFF29, 0xFF2A, 0xFF2B, 0xFF2C, 0xFF2D,
  96. 0xFF2E, 0xFF2F, 0xFF30, 0xFF31, 0xFF32, 0xFF33, 0xFF34, 0xFF35,
  97. 0xFF36, 0xFF37, 0xFF38, 0xFF39, 0xFF3A, 0xFF1A, 0xFF0B, 0xFF1C,
  98. 0xFF3F, 0xFF1E, 0xFF1F, 0xFF5E, 0xFF5B, 0xFF5C, 0xFF5D, 0xFF02,
  99. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  100. 0x0020, 0x0020, 0x0020, 0x039A, 0x03A7, 0x03A5, 0x039C, 0x0393,
  101. 0x039D, 0x039E, 0x039F, 0x0398, 0x03A0, 0x03A1, 0x0020, 0x03A9,
  102. 0x03A8, 0x0399, 0x0020, 0x0391, 0x0394, 0x039B, 0x0395, 0x0397,
  103. 0x03A6, 0x0392, 0x03A4, 0x0396, 0x03A3, 0x0020, 0x0020, 0x0020,
  104. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  105. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  106. 0x0020, 0x0020, 0x0020, 0x041B, 0x042A, 0x0428, 0x041D, 0x0412,
  107. 0x041E, 0x041F, 0x0420, 0x0416, 0x0421, 0x0422, 0x0423, 0x042C,
  108. 0x042B, 0x0417, 0x0418, 0x0410, 0x0413, 0x041C, 0x0414, 0x0401,
  109. 0x0429, 0x0411, 0x0427, 0x0415, 0x0426, 0x0424, 0x0020, 0x042D,
  110. 0x0020, 0x042E, 0x042F, 0x0020, 0x0419, 0x0020, 0x041A, 0x0425,
  111. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  112. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  113. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  114. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  115. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  116. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  117. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  118. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  119. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  120. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  121. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  122. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  123. 0x0020, 0x0020, 0x3044, 0x3046, 0x3048, 0x304A, 0x304C, 0x304E,
  124. 0x3050, 0x3052, 0x3054, 0x3071, 0x308D, 0x308B, 0x3077, 0x305A,
  125. 0x307A, 0x307D, 0x3070, 0x3065, 0x3073, 0x3076, 0x3079, 0x3086,
  126. 0x3084, 0x0020, 0x3067, 0x3056, 0x305C, 0x3074, 0x305E, 0x3062,
  127. 0x308C, 0x3058, 0x308A, 0x3060, 0x3089, 0x307C, 0x0020, 0x3088,
  128. 0x0020, 0x308F, 0x0020, 0x3042, 0x3069, 0x0020, 0x0020, 0x0020,
  129. 0x0020, 0x30B2, 0x30A4, 0x30A6, 0x0020, 0x30A8, 0x30AA, 0x30AC,
  130. 0x0020, 0x30AE, 0x30B0, 0x30D1, 0x30ED, 0x30EB, 0x30D7, 0x30BA,
  131. 0x30DA, 0x30DD, 0x30D0, 0x30C5, 0x30D3, 0x30D6, 0x30D9, 0x30E6,
  132. 0x30E4, 0x0020, 0x30C7, 0x30B6, 0x30BC, 0x30D4, 0x30BE, 0x30C2,
  133. 0x30EC, 0x30B8, 0x30EA, 0x30C0, 0x30E9, 0x30DC, 0x30B4, 0x30E8,
  134. 0x0020, 0x30EF, 0x0020, 0x30A2, 0x30C9, 0x0020, 0x0020, 0x0020,
  135. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  136. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  137. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  138. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  139. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  140. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  141. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  142. 0x0020, 0x0020, 0x0020, 0x2460, 0x2482, 0x2480, 0x2462, 0x2494,
  143. 0x2463, 0x2464, 0x2465, 0x2499, 0x2466, 0x2467, 0x2468, 0x2484,
  144. 0x2483, 0x249A, 0x249B, 0x2492, 0x2495, 0x2461, 0x2496, 0x2498,
  145. 0x2481, 0x2493, 0x247F, 0x2497, 0x247E, 0x2469, 0x0020, 0x2485,
  146. 0x0020, 0x2486, 0x2487, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  147. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  148. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  149. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  150. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  151. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  152. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  153. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  154. 0x0020, 0x0020, 0x0020, 0x4F70, 0x0020, 0x0020, 0x0020, 0x8D30,
  155. 0x0020, 0x0020, 0x0020, 0x67D2, 0x0020, 0x0020, 0x0020, 0x0020,
  156. 0x0020, 0x634C, 0x7396, 0x96F6, 0x53C1, 0x4EDF, 0x8086, 0x9646,
  157. 0x0020, 0x58F9, 0x0020, 0x4F0D, 0x0020, 0x0020, 0x0020, 0x0020,
  158. 0x0020, 0x0020, 0x0020, 0x0020, 0x62FE, 0x0020, 0x0020, 0x0020,
  159. 0x0020, 0x2505, 0x2515, 0x2516, 0x2517, 0x2518, 0x2519, 0x251A,
  160. 0x251B, 0x0020, 0x2501, 0x2534, 0x2548, 0x2546, 0x2536, 0x2526,
  161. 0x2537, 0x2538, 0x2539, 0x252B, 0x253A, 0x253B, 0x0020, 0x254A,
  162. 0x2549, 0x0020, 0x2503, 0x2524, 0x2527, 0x2535, 0x2528, 0x252A,
  163. 0x2547, 0x2525, 0x2545, 0x2529, 0x2544, 0x0020, 0x0020, 0x254B,
  164. 0x2509, 0x0020, 0x0020, 0x2514, 0x2507, 0x0020, 0x250B, 0x0020,
  165. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  166. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  167. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  168. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  169. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  170. 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
  171. };
  172. #else
  173. BYTE SKLayout[NumsSK][MAXSOFTKEYS*2] = {
  174. "�����������������������������������������������������������������������������������������ۣܣݣ�",
  175. "�� �ʦ֦Ԧ̦æͦΦϦȦЦ� �ئצ� ���Ħ˦ŦǦզ¦ӦƦ� ",
  176. "�� �ݧ����ߧӧ������ا����������٧ڧѧԧާէק��ҧ��֧��� �� ���� �� �ܧ�",
  177. "������ �� �ڨި��Ǩ֨ϨΨͨѨըبۨ��ܨ����٨ߨ��ƨШ˨Ԩ��Ҩ� �רȨ� �� ������ ",
  178. "�� �� �������� ���������������� ������ ������������ �� ���� �� ",
  179. "�� �������������������ʤ����̤��ͤΤϤĤҤդؤ����äƤ����ˤ����ᤷ�ߤ��ޤ� �������򤡤� ����",
  180. "�����������������������ʥ����̥��ͥΥϥĥҥեإ����åƥ����˥����᥷�ߥ��ޥۥ��������򥡥ȥ�����",
  181. "���������������������������������������á������ۣ������������������������������ݡ��������ࡨ����",
  182. "�������������������������ɢǢ碳�����ꢸ�������ˢʢ��������梵���Ȣ��Ƣ��Ţ� �̢��͢΢� ",
  183. "�� �ԡ٣��ܡݣ����ڡۡġѡϡƣ��ǡȡɡҡ� �ߡסաӡء����š� �У��Σ��͡� �ˡ� �֡� ",
  184. "�������������꣤�룥���� ���������׼���̫�İ� �˾š���ǧ����΢һ������ �� ʮ ",
  185. "������������������ ���Щ����ҩ©өԩթǩ֩� ���� �����éѩĩƩ������ũ� �穬 ���� �� ",
  186. "�� ���ޣ����������������������ߡ��������������ܡ������� ",
  187. };
  188. BYTE SKLayoutS[NumsSK][MAXSOFTKEYS*2] = {
  189. "�����������磥�ޣ��������£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣ڣ������ߣ�������������",
  190. " ���������������������� ������ �������������������� ",
  191. " ������������������������������������������������������ �� ���� �� ����",
  192. " ",
  193. " ",
  194. " �������������������Ѥ����פ��ڤݤܤŤӤ֤٤��� �Ǥ����Ԥ��¤줸�������� �� �� ���� ",
  195. " ������ ������ �����ѥ����ץ��ڥݥХťӥ֥٥��� �ǥ����ԥ��¥쥸�������ܥ��� �� ���� ",
  196. " ",
  197. " �٢ӢѢۢ��ܢݢޢ¢ߢ����բԢâĢ����ڢ����Ң��Т��Ϣ� �� �ע� ",
  198. " ",
  199. " �� �� �� �Ǿ�����Ǫ��½ Ҽ �� ʰ ",
  200. " ���������������� ���ة����کʩ۩ܩݩϩީ� ���� ���ȩ˩٩̩Ω��ɩ��ͩ� �舘 ���� �� ",
  201. " ",
  202. };
  203. #endif //UNICODE
  204. #pragma data_seg()
  205. HDC ST_UI_hDC;
  206. UINT uStartComp = 0;
  207. UINT uOpenCand = 0;
  208. UINT uCaps = 0;
  209. DWORD SaTC_Trace;
  210. HINSTANCE hInst;
  211. IMEL sImeL;
  212. LPIMEL lpImeL;
  213. TCHAR szUIClassName[CLASS_LEN];
  214. TCHAR szCompClassName[CLASS_LEN];
  215. TCHAR szCandClassName[CLASS_LEN];
  216. TCHAR szStatusClassName[CLASS_LEN];
  217. TCHAR szCMenuClassName[CLASS_LEN];
  218. TCHAR szSoftkeyMenuClassName[CLASS_LEN];
  219. TCHAR szHandCursor[] = TEXT("Hand");
  220. TCHAR szChinese[] = TEXT("Chinese");
  221. TCHAR szEnglish[] = TEXT("English");
  222. #if defined(COMBO_IME)
  223. TCHAR pszImeName[IMEINDEXNUM][MAX_PATH];
  224. TCHAR *szImeName;
  225. TCHAR szImeRegName[MAX_PATH];
  226. #else
  227. #if defined(GB)
  228. TCHAR szImeName[] = pszImeName[0];
  229. #else
  230. TCHAR szImeName[] = pszImeName[1];
  231. #endif
  232. #endif //COMBO_IME
  233. TCHAR szCode[] = TEXT("Code");
  234. TCHAR szEudc[] = TEXT("Eudc");
  235. TCHAR szFullShape[] = TEXT("FullShape");
  236. TCHAR szHalfShape[] = TEXT("HalfShape");
  237. TCHAR szSymbol[] = TEXT("Symbol");
  238. TCHAR szNoSymbol[] = TEXT("NoSymbol");
  239. TCHAR szNone[] = TEXT("None");
  240. TCHAR szSoftKBD[] = TEXT("SoftKBD");
  241. TCHAR szNoSoftKBD[] = TEXT("NoSoftKBD");
  242. TCHAR szDigit[] = TEXT("01234567890");
  243. #ifdef UNICODE
  244. TCHAR szCandInf[] ={0x0020, 0x0020, 0x0020, 0x6570, 0x5B57, 0x952E, 0x0000};
  245. TCHAR szTrace[]= {0x5149, 0x6807, 0x8DDF, 0x968F, 0x0000};
  246. TCHAR szRegRevKL[] = {0x7F16, 0x7801, 0x67E5, 0x8BE2, 0x0000};
  247. TCHAR szRegRevMaxKey[] = {0x7F16, 0x7801, 0x67E5, 0x8BE2, 0x7801, 0x957F, 0x0000};
  248. TCHAR szWarnTitle[] = {0x8B66, 0x544A, 0x0000};
  249. TCHAR szErrorTitle[] = {0x9519, 0x8BEF, 0x0000};
  250. #else
  251. BYTE szCandInf[] = " ���ּ�";
  252. BYTE szTrace[]= "��������";
  253. #if defined(CROSSREF)
  254. BYTE szRegRevKL[] = "������ѯ";
  255. BYTE szRegRevMaxKey[] = "������ѯ�볤";
  256. #endif //CROSSREF
  257. BYTE szWarnTitle[]="����";
  258. BYTE szErrorTitle[]="����";
  259. #endif //UNICODE
  260. // convert char to upper case
  261. BYTE bUpper[] = {
  262. // 0x20 - 0x27
  263. 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
  264. // 0x28 - 0x2F
  265. 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F,
  266. // 0x30 - 0x37
  267. 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
  268. // 0x38 - 0x3F
  269. 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F,
  270. // 0x40 - 0x47
  271. 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
  272. // 0x48 - 0x4F
  273. 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F,
  274. // 0x50 - 0x57
  275. 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
  276. // 0x58 - 0x5F
  277. 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F,
  278. // ' a b c d e f g
  279. '`', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
  280. // h i j k l m n o
  281. 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  282. // p q r s t u v w
  283. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  284. // x y z { | } ~
  285. 'X', 'Y', 'Z'
  286. };
  287. WORD fMask[] = { // offset of bitfield
  288. 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080,
  289. 0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000, 0x8000
  290. };
  291. TCHAR szRegIMESetting[] = TEXT("Control Panel\\Input Method");
  292. TCHAR szPara[] = TEXT("Parallel Distance");
  293. TCHAR szPerp[] = TEXT("Perpendicular Distance");
  294. TCHAR szParaTol[] = TEXT("Parallel Tolerance");
  295. TCHAR szPerpTol[] = TEXT("Perpendicular Tolerance");
  296. #if defined(COMBO_IME)
  297. TCHAR szRegImeIndex[] = TEXT("IME Index");
  298. #endif
  299. // decide UI offset base on escapement
  300. const NEARCARET ncUIEsc[] = {
  301. // LogFontX LogFontY ParaX PerpX ParaY PerpY
  302. { 0, 1, 1, 0, 0, 1}, // 0
  303. { 1, 0, 0, 1, 1, 0}, // 900
  304. { 0, 0, -1, 0, 0, 1}, // 1800
  305. {-1, 0, 0, -1, -1, 0} // 2700
  306. };
  307. // decide another UI offset base on escapement
  308. const NEARCARET ncAltUIEsc[] = {
  309. // LogFontX LogFontY ParaX PerpX ParaY PerpY
  310. { 0, 0, 1, 0, 0, -1}, // 0
  311. { 0, 0, 0, -1, 1, 0}, // 900
  312. { 0, 0, -1, 0, 0, -1}, // 1800
  313. { 0, 0, 0, 1, -1, 0} // 2700
  314. };
  315. // decide input rectangle base on escapement
  316. const POINT ptInputEsc[] = {
  317. // LogFontWi LogFontHi
  318. {1, 1}, // 0
  319. {1, -1}, // 900
  320. {1, 1}, // 1800
  321. {-1, 1} // 2700
  322. };
  323. // decide another input rectangle base on escapement
  324. const POINT ptAltInputEsc[] = {
  325. // LogFontWi LogFontHi
  326. {1, -1}, // 0
  327. {-1, -1}, // 900
  328. {1, -1}, // 1800
  329. {1, 1} // 2700
  330. };
  331. BYTE VirtKey48Map[48] = {
  332. 0x20, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38,
  333. 0x39, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,
  334. 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53,
  335. 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0xba, 0xbb, 0xbc,
  336. 0xbd, 0xbe, 0xbf, 0xc0, 0xdb, 0xdc, 0xdd, 0xde
  337. };