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.

211 lines
6.6 KiB

  1. /*************************************************
  2. * winime.rc *
  3. * *
  4. * Copyright (C) 1995-1999 Microsoft Inc. *
  5. * *
  6. *************************************************/
  7. #include <winuser.h>
  8. #include "winime.rcv"
  9. #include "imeattr.h"
  10. #include "imerc.h"
  11. #include "ime.rc"
  12. IDBM_CMODE_NATIVE BITMAP Chinese.bmp
  13. IDIC_IME_ICON ICON IME.ICO
  14. IDRC_VALIDCHAR RCDATA
  15. BEGIN
  16. // DWORD dwVersion;
  17. 0, 1,
  18. // WORD fwProperties1;
  19. #ifdef UNICODE
  20. IMEPROP_UNICODE|
  21. #endif
  22. 0x0000,
  23. // WORD fwProperties2;
  24. 0x0000,
  25. // WORD nMaxKey;
  26. 4,
  27. // WORD nSeqCode;
  28. 0x10,
  29. // WORD fChooseChar[6]; bit 15 -> 0xF, bit 0 -> 0x0
  30. // when this bit == 1, this char can be entered in choosing candidates
  31. // 20-2F /.-, +*)( '&%$ #"!
  32. 0x0000, // 0000 0000 0000 0000
  33. // 30-3F ?>=< ;:98 7654 3210
  34. 0x0000, // 0000 0000 0000 0000
  35. // 40-4F ONML KJIH GFED CBA@
  36. 0x0000, // 0000 0000 0000 0000
  37. // 50-5f _^]\ [ZYX WVUT SRQP
  38. 0x0000, // 0000 0000 0000 0000
  39. // 60-6F onml kjih gfed cba`
  40. 0x0000, // 0000 0000 0000 0000
  41. // 70-7F ~}| {zyx wvut srqp
  42. 0x0000, // 0000 0000 0000 0000
  43. // WORD wReserved1[2];
  44. 0x0000, 0x0000,
  45. // WORD fCompChar[6]; bit 15 -> 0xF, bit 0 -> 0x0
  46. // when this bit == 1, this char can be entered in composing char
  47. // 20-2F /.-, +*)( '&%$ #"!
  48. 0x0000, // 0000 0000 0000 0000
  49. // 30-3F ?>=< ;:98 7654 3210
  50. 0x03FF, // 0000 0011 1111 1111
  51. // 40-4F ONML KJIH GFED CBA@
  52. 0x007E, // 0000 0000 0111 1110
  53. // 50-5F _^]\ [ZYX WVUT SRQP
  54. 0x0000, // 0000 0000 0000 0000
  55. // 60-6F onml kjih gfed cba`
  56. 0x0000, // 0000 0000 0000 0000
  57. // 70-7F ~}| {zyx wvut srqp
  58. 0x0000, // 0000 0000 0000 0000
  59. // WORD wReserved1[2];
  60. 0x0000, 0x0000,
  61. // WORD wCandPerPage;
  62. 0x0009,
  63. // WORD wCandStart;
  64. 0x0001,
  65. // WORD wCandRangeStart;
  66. 0x0001,
  67. // WORD wReserved3[1];
  68. 0x0000,
  69. // WORD wSeq2CompTbl[64];
  70. // 0 1 2 3 4 5 6 7 8 9 A B C D E F - sequence code
  71. #ifdef UNICODE
  72. 0x3000, 0xFF10, 0xFF11, 0xFF12, 0xFF13, 0xFF14, 0xFF15, 0xFF16,
  73. 0xFF17, 0xFF18, 0xFF19, 0xFF21, 0xFF22, 0xFF23, 0xFF24, 0xFF25,
  74. #else
  75. "�@���������������������ϢТѢҢ�", // comp char
  76. // 0x40A1, 0xafA2, 0xb0A2, 0xb1A2, 0xb2a2, 0xb3A2, 0xb4A2, 0xb5A2,
  77. // 0xb6A2, 0xb7A2, 0xb8A2, 0xcfA2, 0xd0A2, 0xd1A2, 0xd2A2, 0xd3A2,
  78. #endif
  79. // 101112131415161718191A1B1C1D1E1F
  80. #ifdef UNICODE
  81. 0xFF26, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
  82. 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
  83. #else
  84. "�ԡ@�@�@�@�@�@�@�@�@�@�@�@�@�@�@",
  85. // 0xD4A2, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
  86. // 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
  87. #endif
  88. // 202122232425262728292A2B2C2D2E2F
  89. #ifdef UNICODE
  90. 0xFF26, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
  91. 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
  92. #else
  93. "�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@",
  94. // 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
  95. // 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
  96. #endif
  97. // 303132333435363738393A3B3C3D3E3F
  98. #ifdef UNICODE
  99. 0xFF26, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
  100. 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x20AC, 0x3000, 0x3000,
  101. #else
  102. "�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@",
  103. // 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
  104. // 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
  105. #endif
  106. // WORD wChar2SeqTbl[0x42];
  107. // ' ' ! " # $ % & ' - char code
  108. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // sequence code
  109. // ( ) * + , - . /
  110. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  111. // 0 1 2 3 4 5 6 7
  112. 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
  113. // 8 9 : ; < = > ?
  114. 0x09, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  115. // @ A B C D E F G
  116. 0x00, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x00,
  117. // H I J K L M N O
  118. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  119. // P Q R S T U V W
  120. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  121. // X Y Z [ \ ] ^ _
  122. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  123. // ` a
  124. 0x3D, 0x00,
  125. END
  126. IDRC_TABLEFILES RCDATA
  127. BEGIN
  128. #ifdef UNICODE
  129. // szTblFile[4][16]
  130. L"\0 34567890123456", L"\0 34567890123456",
  131. L"\0 34567890123456", L"\0 34567890123456",
  132. #else
  133. // szTblFile[4][32]
  134. "\0 345678901234567890123456789012", "\0 345678901234567890123456789012",
  135. "\0 345678901234567890123456789012", "\0 345678901234567890123456789012",
  136. #endif
  137. END
  138. STRINGTABLE
  139. BEGIN
  140. IDS_IMENAME, "Internal Code"
  141. IDS_IMEUICLASS, "WINIME"
  142. IDS_IMECOMPCLASS, "CompWINIME"
  143. IDS_IMECANDCLASS, "CandWINIME"
  144. IDS_IMESTATUSCLASS, "StatusWINIME"
  145. IDS_IMEOFFCARETCLASS, "OffWINIME"
  146. IDS_IMECMENUCLASS, "CMenuWINIME"
  147. END
  148. // dialog to change configuration
  149. IDDG_IME_CONFIG DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 32, 40, 200, 140
  150. CAPTION "Change Configuration"
  151. FONT 11, "PMingLiu",400,0,136
  152. //#ifdef LATER // bklee
  153. STYLE WS_CAPTION|WS_POPUP|WS_DLGFRAME|DS_3DLOOK|DS_CENTER|WS_SYSMENU
  154. /*
  155. #else
  156. STYLE WS_CAPTION|WS_POPUP|WS_SYSMENU|DS_CENTER|DS_MODALFRAME
  157. #endif
  158. */
  159. BEGIN
  160. LTEXT "Reverse conversion Input Method", -1, 10, 10, 180, 14
  161. LISTBOX IDD_LAYOUT_LIST, 10, 24, 180, 48, WS_VSCROLL|WS_TABSTOP
  162. CHECKBOX "Caret &Unrelated user interface", IDD_OFF_CARET_UI, 30, 80, 120, 15, BS_AUTOCHECKBOX|WS_TABSTOP
  163. CHECKBOX "&Phrase prediction", IDD_PREDICT, 30, 100, 70, 15, BS_AUTOCHECKBOX|WS_TABSTOP
  164. CHECKBOX "Show &Big5 Only Chars", IDD_BIG5ONLY, 110,80,100,15, BS_AUTOCHECKBOX|WS_TABSTOP
  165. PUSHBUTTON "&Cancel", IDCANCEL, 40, 120, 40, 15, WS_GROUP|WS_TABSTOP
  166. DEFPUSHBUTTON "&OK", IDOK, 120, 120, 40, 15, WS_TABSTOP
  167. END