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.

335 lines
11 KiB

  1. #include "windows.h"
  2. #include "generic.h"
  3. #include "winver.h"
  4. /////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Icon
  7. //
  8. GENERIC ICON DISCARDABLE "GENERIC.ICO"
  9. SMALL ICON DISCARDABLE "SMALL.ICO"
  10. /////////////////////////////////////////////////////////////////////////////
  11. //
  12. // Menu
  13. //
  14. GENERIC MENU DISCARDABLE
  15. BEGIN
  16. POPUP "&File"
  17. BEGIN
  18. MENUITEM "&New", IDM_NEW, GRAYED
  19. MENUITEM "&Open...", IDM_OPEN, GRAYED
  20. MENUITEM "&Save", IDM_SAVE, GRAYED
  21. MENUITEM "Save &As...", IDM_SAVEAS, GRAYED
  22. MENUITEM SEPARATOR
  23. MENUITEM "&Print...", IDM_PRINT, GRAYED
  24. MENUITEM "P&rint Setup...", IDM_PRINTSETUP, GRAYED
  25. MENUITEM SEPARATOR
  26. MENUITEM "E&xit", IDM_EXIT
  27. END
  28. POPUP "&Edit"
  29. BEGIN
  30. MENUITEM "&Undo\tCtrl+Z", IDM_UNDO, GRAYED
  31. MENUITEM SEPARATOR
  32. MENUITEM "Cu&t\tCtrl+X", IDM_CUT, GRAYED
  33. MENUITEM "&Copy\tCtrl+C", IDM_COPY, GRAYED
  34. MENUITEM "&Paste\tCtrl+V", IDM_PASTE, GRAYED
  35. MENUITEM "Paste &Link", IDM_LINK, GRAYED
  36. MENUITEM SEPARATOR
  37. MENUITEM "Lin&ks...", IDM_LINKS, GRAYED
  38. END
  39. POPUP "&Help"
  40. BEGIN
  41. MENUITEM "&Contents", IDM_HELPCONTENTS, HELP
  42. MENUITEM "&Search for Help On...", IDM_HELPSEARCH, HELP
  43. MENUITEM "&How to Use Help", IDM_HELPHELP, HELP
  44. MENUITEM SEPARATOR
  45. MENUITEM "&About Generic...", IDM_ABOUT
  46. END
  47. END
  48. WIN95 MENU DISCARDABLE
  49. BEGIN
  50. POPUP "&File"
  51. BEGIN
  52. MENUITEM "&New", IDM_NEW, GRAYED
  53. MENUITEM "&Open...", IDM_OPEN, GRAYED
  54. MENUITEM "&Save", IDM_SAVE, GRAYED
  55. MENUITEM "Save &As...", IDM_SAVEAS, GRAYED
  56. MENUITEM SEPARATOR
  57. MENUITEM "&Print...", IDM_PRINT, GRAYED
  58. MENUITEM "P&rint Setup...", IDM_PRINTSETUP, GRAYED
  59. MENUITEM SEPARATOR
  60. MENUITEM "E&xit", IDM_EXIT
  61. END
  62. POPUP "&Edit"
  63. BEGIN
  64. MENUITEM "&Undo\tCtrl+Z", IDM_UNDO, GRAYED
  65. MENUITEM SEPARATOR
  66. MENUITEM "Cu&t\tCtrl+X", IDM_CUT, GRAYED
  67. MENUITEM "&Copy\tCtrl+C", IDM_COPY, GRAYED
  68. MENUITEM "&Paste\tCtrl+V", IDM_PASTE, GRAYED
  69. MENUITEM "Paste &Link", IDM_LINK, GRAYED
  70. MENUITEM SEPARATOR
  71. MENUITEM "Lin&ks...", IDM_LINKS, GRAYED
  72. END
  73. POPUP "&Help"
  74. BEGIN
  75. MENUITEM "&Help Topics...", IDM_HELPTOPICS
  76. MENUITEM SEPARATOR
  77. MENUITEM "&About Generic...", IDM_ABOUT
  78. END
  79. END
  80. /////////////////////////////////////////////////////////////////////////////
  81. //
  82. // Accelerator
  83. //
  84. GENERIC ACCELERATORS MOVEABLE PURE
  85. BEGIN
  86. VK_F1, IDM_HELPCONTENTS, VIRTKEY
  87. "?", IDM_ABOUT, ASCII, ALT
  88. "/", IDM_ABOUT, ASCII, ALT
  89. END
  90. /////////////////////////////////////////////////////////////////////////////
  91. //
  92. // Dialog
  93. //
  94. ABOUTBOX DIALOG DISCARDABLE 22, 17, 167, 74
  95. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  96. CAPTION "About"
  97. FONT 8, "System"
  98. BEGIN
  99. DEFPUSHBUTTON "OK",IDOK,132,2,32,14,WS_GROUP
  100. ICON "Generic",IDC_STATIC,3,2,18,20
  101. LTEXT "CompanyName",IDC_COMPANY,30,2,100,8
  102. LTEXT "FileDescription",IDC_FILEDESC,30,10,71,8
  103. RTEXT "ProductVersion",IDC_PRODVER,106,10,17,8
  104. LTEXT "LegalCopyright",IDC_COPYRIGHT,30,18,137,8
  105. LTEXT "OSVERSION",IDC_OSVERSION,46,34,118,8
  106. LTEXT "LegalTrademarks",IDC_TRADEMARK,3,49,162,18
  107. LTEXT "Running on:",IDC_LABEL,4,34,40,8
  108. CONTROL "",IDC_STATIC,"Static",SS_BLACKRECT,2,31,164,1
  109. CONTROL "",IDC_STATIC,"Static",SS_BLACKRECT,2,44,164,1
  110. END
  111. /////////////////////////////////////////////////////////////////////////////
  112. //
  113. // Version
  114. //
  115. 1 VERSIONINFO
  116. FILEVERSION 3,5,0,0
  117. PRODUCTVERSION 3,5,0,0
  118. FILEFLAGSMASK 0x3fL
  119. #ifdef _DEBUG
  120. FILEFLAGS 0xbL
  121. #else
  122. FILEFLAGS 0xaL
  123. #endif
  124. FILEOS 0x10001L
  125. FILETYPE 0x1L
  126. FILESUBTYPE 0x0L
  127. BEGIN
  128. BLOCK "StringFileInfo"
  129. BEGIN
  130. BLOCK "040904E4"
  131. BEGIN
  132. VALUE "Comments", "Written by: Robert B. Hess\0"
  133. VALUE "CompanyName", "Microsoft Corporation\0"
  134. VALUE "FileDescription", "Generic Example Application\0"
  135. VALUE "FileVersion", "0.0\0"
  136. VALUE "InternalName", "Generic\0"
  137. VALUE "LegalCopyright", "Copyright (C) Microsoft Corp. 1990 - 1995\0"
  138. VALUE "LegalTrademarks", "Microsoft(R) is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation\0"
  139. VALUE "OriginalFilename", "\0"
  140. VALUE "ProductName", "Generic\0"
  141. VALUE "ProductVersion", "3.6\0"
  142. END
  143. BLOCK "041104E4"
  144. BEGIN
  145. VALUE "Comments", "Written by: Robert B. Hess\0"
  146. VALUE "CompanyName", "Microsoft Corporation\0"
  147. VALUE "FileDescription", "Generic Example Application\0"
  148. VALUE "FileVersion", "0.0\0"
  149. VALUE "InternalName", "Generic\0"
  150. VALUE "LegalCopyright", "Copyright (C) Microsoft Corp. 1990 - 1995\0"
  151. VALUE "LegalTrademarks", "Microsoft(R) is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation\0"
  152. VALUE "OriginalFilename", "\0"
  153. VALUE "ProductName", "Generic\0"
  154. VALUE "ProductVersion", "3.6\0"
  155. END
  156. END
  157. BLOCK "VarFileInfo"
  158. BEGIN
  159. VALUE "Translation", 0x409, 0x04E4, 0x411, 0x04E4
  160. END
  161. END
  162. /////////////////////////////////////////////////////////////////////////////
  163. //
  164. // String Table
  165. //
  166. STRINGTABLE DISCARDABLE
  167. BEGIN
  168. IDS_APP_TITLE "Generic: Sample Application"
  169. IDS_DISPLAYCHANGED "Display Changed"
  170. IDS_VER_INFO_LANG "\\StringFileInfo\\040904E4\\"
  171. IDS_VERSION_ERROR "Error %lu"
  172. IDS_NO_HELP "Unable to activate help"
  173. END
  174. //////////////////////////////////////////////////////////////////////////
  175. //////////////////////////////////////////////////////////////////////////
  176. #ifdef JAPAN
  177. LANGUAGE LANG_JAPANESE, SUBLANG_NEUTRAL
  178. /////////////////////////////////////////////////////////////////////////////
  179. //
  180. // Icon
  181. //
  182. GENERIC ICON DISCARDABLE "GENERIC.ICO"
  183. SMALL ICON DISCARDABLE "SMALL.ICO"
  184. /////////////////////////////////////////////////////////////////////////////
  185. //
  186. // Menu
  187. //
  188. GENERIC MENU DISCARDABLE
  189. BEGIN
  190. POPUP "�t�@�C��(&F)"
  191. BEGIN
  192. MENUITEM "�V�K�쐬(&N)", IDM_NEW, GRAYED
  193. MENUITEM "�J��(&O)...", IDM_OPEN, GRAYED
  194. MENUITEM "�㏑���ۑ�(&S)", IDM_SAVE, GRAYED
  195. MENUITEM "���O���t���ĕۑ�(&A)...", IDM_SAVEAS, GRAYED
  196. MENUITEM SEPARATOR
  197. MENUITEM "����(&P)...", IDM_PRINT, GRAYED
  198. MENUITEM "�v�����^�̐ݒ�(&R)...", IDM_PRINTSETUP, GRAYED
  199. MENUITEM SEPARATOR
  200. MENUITEM "�I��(&X)", IDM_EXIT
  201. END
  202. POPUP "�ҏW(&E)"
  203. BEGIN
  204. MENUITEM "���ɖ߂�(&U)\tCtrl+Z", IDM_UNDO, GRAYED
  205. MENUITEM SEPARATOR
  206. MENUITEM "�؂�����(&T)\tCtrl+X", IDM_CUT, GRAYED
  207. MENUITEM "�R�s�[(&C)\tCtrl+C", IDM_COPY, GRAYED
  208. MENUITEM "�\���t��(&P)\tCtrl+V", IDM_PASTE, GRAYED
  209. MENUITEM "�����N�\���t��(&L)" IDM_LINK, GRAYED
  210. MENUITEM SEPARATOR
  211. MENUITEM "�����N�̐ݒ�(&K)..." IDM_LINKS, GRAYED
  212. END
  213. POPUP "�w���v(&H)"
  214. BEGIN
  215. MENUITEM "�ڎ�(&C)", IDM_HELPCONTENTS, HELP
  216. MENUITEM "�L�[���[�h�Ō���(&S)...", IDM_HELPSEARCH, HELP
  217. MENUITEM "�w���v�̎g����(&H)", IDM_HELPHELP, HELP
  218. MENUITEM SEPARATOR
  219. MENUITEM "�o�[�W��������(&A)...", IDM_ABOUT
  220. END
  221. END
  222. WIN95 MENU DISCARDABLE
  223. BEGIN
  224. POPUP "&File"
  225. BEGIN
  226. MENUITEM "&New", IDM_NEW, GRAYED
  227. MENUITEM "&Open...", IDM_OPEN, GRAYED
  228. MENUITEM "&Save", IDM_SAVE, GRAYED
  229. MENUITEM "Save &As...", IDM_SAVEAS, GRAYED
  230. MENUITEM SEPARATOR
  231. MENUITEM "&Print...", IDM_PRINT, GRAYED
  232. MENUITEM "P&rint Setup...", IDM_PRINTSETUP, GRAYED
  233. MENUITEM SEPARATOR
  234. MENUITEM "E&xit", IDM_EXIT
  235. END
  236. POPUP "&Edit"
  237. BEGIN
  238. MENUITEM "&Undo\tCtrl+Z", IDM_UNDO, GRAYED
  239. MENUITEM SEPARATOR
  240. MENUITEM "Cu&t\tCtrl+X", IDM_CUT, GRAYED
  241. MENUITEM "&Copy\tCtrl+C", IDM_COPY, GRAYED
  242. MENUITEM "&Paste\tCtrl+V", IDM_PASTE, GRAYED
  243. MENUITEM "Paste &Link", IDM_LINK, GRAYED
  244. MENUITEM SEPARATOR
  245. MENUITEM "Lin&ks...", IDM_LINKS, GRAYED
  246. END
  247. POPUP "&Help"
  248. BEGIN
  249. MENUITEM "&Help Topics...", IDM_HELPTOPICS
  250. MENUITEM SEPARATOR
  251. MENUITEM "&About Generic...", IDM_ABOUT
  252. END
  253. END
  254. /////////////////////////////////////////////////////////////////////////////
  255. //
  256. // Accelerator
  257. //
  258. GENERIC ACCELERATORS MOVEABLE PURE
  259. BEGIN
  260. VK_F1, IDM_HELPCONTENTS, VIRTKEY
  261. "?", IDM_ABOUT, ASCII, ALT
  262. "/", IDM_ABOUT, ASCII, ALT
  263. END
  264. /////////////////////////////////////////////////////////////////////////////
  265. //
  266. // Dialog
  267. //
  268. ABOUTBOX DIALOG DISCARDABLE 22, 17, 197, 74
  269. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  270. CAPTION "�o�[�W��������"
  271. FONT 8, "System"
  272. BEGIN
  273. DEFPUSHBUTTON "OK",IDOK,160,2,32,14,WS_GROUP
  274. ICON "Generic",IDC_STATIC,3,2,18,20
  275. LTEXT "CompanyName",IDC_COMPANY,30,2,121,8
  276. LTEXT "FileDescription",IDC_FILEDESC,30,10,102,8
  277. RTEXT "ProductVersion",IDC_PRODVER,134,10,17,8
  278. LTEXT "LegalCopyright",IDC_COPYRIGHT,30,18,162,8
  279. LTEXT "OSVERSION",IDC_OSVERSION,46,34,146,8
  280. LTEXT "LegalTrademarks",IDC_TRADEMARK,3,49,189,18
  281. LTEXT "Running on:",IDC_LABEL,4,34,40,8
  282. CONTROL "",IDC_STATIC,"Static",SS_BLACKRECT,2,31,192,1
  283. CONTROL "",IDC_STATIC,"Static",SS_BLACKRECT,2,44,192,1
  284. END
  285. /////////////////////////////////////////////////////////////////////////////
  286. //
  287. // String Table
  288. //
  289. STRINGTABLE DISCARDABLE
  290. BEGIN
  291. IDS_APP_TITLE "Generic: �T���v�� �A�v���P�[�V����"
  292. IDS_DISPLAYCHANGED "�f�B�X�v���C�̐ݒ肪�ύX�����܂���"
  293. IDS_VER_INFO_LANG "\\StringFileInfo\\041104E4\\"
  294. IDS_VERSION_ERROR "�G���[ %lu"
  295. IDS_NO_HELP "�w���v�����s�ł��܂���"
  296. END
  297. #endif