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.

260 lines
8.8 KiB

  1. /*************************************************
  2. * chnuconv.rc *
  3. * *
  4. * Copyright (C) 1992-1999 Microsoft Inc. *
  5. * *
  6. *************************************************/
  7. //Microsoft App Studio generated resource script.
  8. //
  9. #include "resource.h"
  10. /////////////////////////////////////////////////////////////////////////
  11. //
  12. // Generated from the TEXTINCLUDE 2 resource.
  13. //
  14. #include <windows.h>
  15. #include "chnuconv.h"
  16. #include <commctrl.h>
  17. IDI_CHNUCONV ICON chnuconv.ico
  18. //////////////////////////////////////////////////////////////////////////////
  19. //
  20. // Menu
  21. //
  22. IDM_CHNUCONV MENU
  23. BEGIN
  24. POPUP "&File"
  25. BEGIN
  26. MENUITEM "&Open", IDM_FILE_OPEN
  27. MENUITEM "&Save As", IDM_FILE_SAVEAS, GRAYED
  28. MENUITEM SEPARATOR
  29. MENUITEM "&Exit", IDM_FILE_EXIT
  30. END
  31. POPUP "&Help"
  32. BEGIN
  33. MENUITEM "&Content", IDM_HELP_CONTENT
  34. MENUITEM "&About...", IDM_HELP_ABOUT
  35. END
  36. END
  37. //////////////////////////////////////////////////////////////////////////////
  38. //
  39. // Accelerator
  40. //
  41. IDA_CHNUCONV ACCELERATORS MOVEABLE PURE
  42. BEGIN
  43. VK_INSERT, IDC_PASTEORCOPY, VIRTKEY,CONTROL
  44. "^C", IDC_PASTEORCOPY, ASCII
  45. VK_INSERT, IDC_PASTEORCOPY, VIRTKEY,SHIFT
  46. "^V", IDC_PASTEORCOPY, ASCII
  47. VK_F3, IDC_PUSH_CONVERT, VIRTKEY
  48. VK_F1, IDM_HELP_CONTENT, VIRTKEY
  49. END
  50. //////////////////////////////////////////////////////////////////////////////
  51. //
  52. // Dialog
  53. //
  54. IDD_CHNUCONV DIALOG 0, 0, 275, 220
  55. STYLE WS_POPUP | WS_MINIMIZEBOX | DS_3DLOOK | WS_CAPTION | WS_SYSMENU
  56. // This dialog intentionally does not have the WS_VISIBLE style
  57. CAPTION "Chinese Code Converter"
  58. FONT 8, "MS Shell Dlg"
  59. CLASS "Converter"
  60. MENU IDM_CHNUCONV
  61. BEGIN
  62. CONTROL "",IDC_MAIN_TAB,WC_TABCONTROL ,TCS_TABS |
  63. TCS_FOCUSONBUTTONDOWN | WS_TABSTOP, 10,5,255,190
  64. PUSHBUTTON "&Convert Now", IDC_PUSH_CONVERT, 105,200,50,14,WS_DISABLED
  65. DEFPUSHBUTTON "OK", IDOK, 160,200,50,14
  66. PUSHBUTTON "&Help", IDC_PUSH_HELP, 215,200,50,14
  67. END
  68. IDD_SOURCE_TAB DIALOG 0, 0, 0, 0
  69. STYLE WS_CHILD | NOT WS_BORDER | DS_CONTROL
  70. FONT 8, "MS Shell Dlg"
  71. BEGIN
  72. LTEXT "File:",IDC_NAME,17,24,20,12
  73. EDITTEXT IDC_NAMETEXT,40,22,135,12,ES_AUTOHSCROLL
  74. LTEXT "Size:",IDC_EDIT_SIZE,17,44,20,12
  75. LTEXT "",IDC_SIZETEXT,45,44,80,12
  76. PUSHBUTTON "",IDC_OPENORSAVEAS,188,26,52,14
  77. PUSHBUTTON "&View",IDC_VIEW,188,49,52,14,WS_DISABLED
  78. PUSHBUTTON "Clea&r",IDC_CLEAR,188,95,52,14, WS_DISABLED
  79. PUSHBUTTON "",IDC_PASTEORCOPY,188,72,52,14
  80. GROUPBOX "Code Page",IDC_STATIC,17,60,160,65
  81. CONTROL "",IDC_RBUNICODE1,"Button",BS_AUTORADIOBUTTON|WS_DISABLED,
  82. 25,73,46,12
  83. CONTROL "",IDC_RBGB,"Button",BS_AUTORADIOBUTTON|WS_DISABLED,
  84. 25,89,46,12
  85. CONTROL "",IDC_RBBIG5,"Button",BS_AUTORADIOBUTTON|WS_DISABLED,
  86. 25,105,46,12
  87. CONTROL "",IDC_RBCNS,"Button",BS_AUTORADIOBUTTON | NOT WS_VISIBLE
  88. |WS_DISABLED, 75,73,50,12
  89. CONTROL "",IDC_RBTCA,"Button",BS_AUTORADIOBUTTON | NOT WS_VISIBLE
  90. |WS_DISABLED, 75,89,50,12
  91. CONTROL "",IDC_RBETEN,"Button",BS_AUTORADIOBUTTON| NOT WS_VISIBLE
  92. |WS_DISABLED, 75,105,50,12
  93. CONTROL "",IDC_RBIBM,"Button",BS_AUTORADIOBUTTON | NOT WS_VISIBLE
  94. |WS_DISABLED, 125,73,50,12
  95. CONTROL "",IDC_RBTELE,"Button",BS_AUTORADIOBUTTON| NOT WS_VISIBLE
  96. |WS_DISABLED, 125,89,50,12
  97. CONTROL "",IDC_RBWANG,"Button",BS_AUTORADIOBUTTON| NOT WS_VISIBLE
  98. |WS_DISABLED, 125,105,50,12
  99. CONTROL "&Swap High-Low Byte Order",IDC_SWAPHIGHLOW,"Button",
  100. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED ,17,141,122,13
  101. END
  102. IDD_OPTION_TAB DIALOG 0, 0, 0, 0
  103. STYLE WS_CHILD | NOT WS_BORDER | DS_CONTROL
  104. FONT 8, "MS Shell Dlg"
  105. BEGIN
  106. PUSHBUTTON "&Reset",IDC_RESET,190,45,50,14
  107. GROUPBOX "Simplified/Traditional Chinese Conversion",IDC_STATIC1,
  108. 15,18,160,56
  109. CONTROL "&Do not convert",IDC_NOSCTCMAP,"Button",BS_AUTORADIOBUTTON
  110. | WS_GROUP, 25,30,118,12
  111. CONTROL "From &Traditional to Simplified",IDC_TCSCMAP,"Button",
  112. BS_AUTORADIOBUTTON,25,44,118,12
  113. CONTROL "From &Simplified to Traditional",IDC_SCTCMAP,"Button",
  114. BS_AUTORADIOBUTTON,25,58,118,12
  115. GROUPBOX "Half-width/Full-width Character Conversion",IDC_STATIC2,
  116. 15,94,160,54
  117. CONTROL "Do &not convert",IDC_NOHWFWMAP,"Button",BS_AUTORADIOBUTTON
  118. | WS_GROUP, 25,108,118,12
  119. CONTROL "From half-&width to full-width",IDC_HWFWMAP,"Button",
  120. BS_AUTORADIOBUTTON,25,120,118,12
  121. CONTROL "From &full-width to half-width",IDC_FWHWMAP,"Button",
  122. BS_AUTORADIOBUTTON,25,132,118,12
  123. END
  124. IDD_SHOWTEXT DIALOG DISCARDABLE 0, 0, 270, 178
  125. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  126. CAPTION "Dialog"
  127. FONT 8, "MS Shell Dlg"
  128. BEGIN
  129. LTEXT "-",IDC_SHOWTEXT_NAME,55,4,200,8
  130. LTEXT "-",IDC_SHOWTEXT_TYPE,55,12,200,8
  131. LTEXT "Caution: Font char set may be different from text char set", IDC_SHOWTEXT_FONT,55,20,200,8
  132. DEFPUSHBUTTON "OK",IDOK,10,10,35,14
  133. EDITTEXT IDC_SHOWTEXT_EDIT,16,34,254,132, ES_READONLY | ES_MULTILINE
  134. | ES_AUTOVSCROLL | WS_VSCROLL
  135. END
  136. #ifdef APSTUDIO_INVOKED
  137. //////////////////////////////////////////////////////////////////////////////
  138. //
  139. // TEXTINCLUDE
  140. //
  141. 1 TEXTINCLUDE DISCARDABLE
  142. BEGIN
  143. "resource.h\0"
  144. END
  145. 2 TEXTINCLUDE DISCARDABLE
  146. BEGIN
  147. "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
  148. "#include ""windows.h""\r\n"
  149. "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
  150. "#include ""chtuconv.h""\r\n"
  151. "#include ""install.h""\r\n"
  152. "\0"
  153. END
  154. 3 TEXTINCLUDE DISCARDABLE
  155. BEGIN
  156. "\r\n"
  157. "\0"
  158. END
  159. /////////////////////////////////////////////////////////////////////////////////////
  160. #endif // APSTUDIO_INVOKED
  161. //////////////////////////////////////////////////////////////////////////////
  162. //
  163. // String Table
  164. //
  165. STRINGTABLE DISCARDABLE
  166. BEGIN
  167. IDS_APPLICATION_NAME "Chinese Code Converter"
  168. IDS_SOURCE_TAB "Source"
  169. IDS_TARGET_TAB "Destination"
  170. IDS_OPTION_TAB "Options"
  171. IDS_FROMCLIPBOARD "<<Input From Clipboard>>"
  172. IDS_NOTSAVEYET "<<Not Saved>>"
  173. IDS_OPENSOURCE "Open Source"
  174. IDS_BUT_OPEN "&Open"
  175. IDS_SAVEAS "Save As"
  176. IDS_BUT_SAVEAS "S&ave As"
  177. IDS_OPENERROR "Failed to open file."
  178. IDS_FILETOOBIG "File size exceeds 8 MB."
  179. IDS_READERROR "Failed to read file."
  180. IDS_WRITEERROR "Failed to write to file."
  181. IDS_CREATEERROR "Failed to generate file."
  182. IDS_NOTEXTCONVERT "No text to convert."
  183. IDS_NOTEXTSAVE "No text to save."
  184. IDS_STYPEUNKNOWN "Source type unknown.\r\n Please specify data type."
  185. IDS_BYTEORDER "Byte order swap mark detected.\r\n Automatically swapping byte order."
  186. IDS_NBYTES "%d Bytes"
  187. IDS_VIEWSOURCE "View Source"
  188. IDS_VIEWTARGET "View Destination"
  189. IDS_BUT_FROMCLIPBOARD "&From Clipboard"
  190. IDS_BUT_TOCLIPBOARD "T&o Clipboard"
  191. IDS_ANSITEXT "Text Documents (*.txt)"
  192. IDS_ALLFILES "All Files (*.*)"
  193. IDS_STRUNICODE "Unicode"
  194. IDS_STRINGGB "GB"
  195. IDS_STRBIG5 "BIG5"
  196. IDS_STRCNS "CNS11643"
  197. IDS_STRTCA "TCA"
  198. IDS_STRETEN "ETEN"
  199. IDS_STRIBM "IBM PS/55"
  200. IDS_STRTELE "TELEgraph"
  201. IDS_STRWANG "WANG"
  202. IDS_CTLUNICODE "&Unicode"
  203. IDS_CTLGB "&GB"
  204. IDS_CTLBIG5 "&BIG5"
  205. IDS_CTLCNS "C&NS11643"
  206. IDS_CTLTCA "&TCA"
  207. IDS_CTLETEN "&ETEN"
  208. IDS_CTLIBM "&IBM PS/55"
  209. IDS_CTLTELE "TE&LEgraph"
  210. IDS_CTLWANG "&WANG"
  211. END
  212. #include <ntverp.h>
  213. #define VER_FILETYPE VFT_APP
  214. #define VER_FILESUBTYPE VFT_UNKNOWN
  215. #define VER_FILEDESCRIPTION_STR "Windows Chinese Code Converter Application File"
  216. #define VER_INTERNALNAME_STR "chnuconv"
  217. #define VER_LEGALCOPYRIGHT_YEARS "1993-1996"
  218. #define VER_ORIGINALFILENAME_STR "CHNUCONV.EXE"
  219. #include "common.ver"