Windows NT 4.0 source code leak
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.

313 lines
8.5 KiB

4 years ago
  1. /***
  2. *dispcalc.r
  3. *
  4. * Copyright (C) 1992-1994, Microsoft Corporation. All Rights Reserved.
  5. *
  6. *Purpose:
  7. * Resource script for dispcalc.
  8. *
  9. *
  10. *Implementation Notes:
  11. *
  12. *****************************************************************************/
  13. #include "types.r"
  14. #include "resource.h"
  15. #if defined (_PPCMAC)
  16. include "cfrg.rsc";
  17. #endif
  18. /* we use an MBAR resource to conveniently load all the menus */
  19. resource 'MBAR' (rMenuBar, preload) {
  20. { mApple, mFile, mEdit }
  21. };
  22. resource 'MENU' (mApple, preload) {
  23. mApple,
  24. textMenuProc,
  25. 0b11111111111111111111111111111101,
  26. enabled,
  27. apple,
  28. {
  29. "About DispCalc\311",
  30. noicon, nokey, nomark, plain;
  31. "-",
  32. noicon, nokey, nomark, plain
  33. }
  34. };
  35. resource 'MENU' (mFile, preload) {
  36. mFile,
  37. textMenuProc,
  38. 0b00000000000000000000100000000000,
  39. enabled,
  40. "File",
  41. {
  42. "New",
  43. noicon, "N", nomark, plain;
  44. "Open",
  45. noicon, "O", nomark, plain;
  46. "-",
  47. noicon, nokey, nomark, plain;
  48. "Close",
  49. noicon, "W", nomark, plain;
  50. "Save",
  51. noicon, "S", nomark, plain;
  52. "Save As\311",
  53. noicon, nokey, nomark, plain;
  54. "Revert",
  55. noicon, nokey, nomark, plain;
  56. "-",
  57. noicon, nokey, nomark, plain;
  58. "Page Setup\311",
  59. noicon, nokey, nomark, plain;
  60. "Print\311",
  61. noicon, nokey, nomark, plain;
  62. "-",
  63. noicon, nokey, nomark, plain;
  64. "Quit",
  65. noicon, "Q", nomark, plain
  66. }
  67. };
  68. resource 'MENU' (mEdit, preload) {
  69. mEdit,
  70. textMenuProc,
  71. 0b00000000000000000000000000000000,
  72. enabled,
  73. "Edit",
  74. {
  75. "Undo",
  76. noicon, "Z", nomark, plain;
  77. "-",
  78. noicon, nokey, nomark, plain;
  79. "Cut",
  80. noicon, "X", nomark, plain;
  81. "Copy",
  82. noicon, "C", nomark, plain;
  83. "Paste",
  84. noicon, "V", nomark, plain;
  85. "Clear",
  86. noicon, nokey, nomark, plain
  87. }
  88. };
  89. resource 'DLOG' (rCalc) {
  90. {100, 100, 240, 220},
  91. rDocProc,
  92. visible,
  93. noGoAway,
  94. 0x0,
  95. rCalc,
  96. "DispCalc"
  97. };
  98. resource 'DITL' (rCalc) {
  99. {
  100. {110,10,130,30}, Button { enabled, "0" } /* 1 */
  101. , {85,10,105,30}, Button { enabled, "1" } /* 2 */
  102. , {85,35,105,55}, Button { enabled, "2" } /* 3 */
  103. , {85,60,105,80}, Button { enabled, "3" } /* 4 */
  104. , {60,10,80,30}, Button { enabled, "4" } /* 5 */
  105. , {60,35,80,55}, Button { enabled, "5" } /* 6 */
  106. , {60,60,80,80}, Button { enabled, "6" } /* 7 */
  107. , {35,10,55,30}, Button { enabled, "7" } /* 8 */
  108. , {35,35,55,55}, Button { enabled, "8" } /* 9 */
  109. , {35,60,55,80}, Button { enabled, "9" } /* 10 */
  110. , {35,85,55,105}, Button { enabled, "+" } /* 11 */
  111. , {60,85,80,105}, Button { enabled, "-" } /* 12 */
  112. , {85,85,105,105}, Button { enabled, "*" } /* 13 */
  113. , {110,85,130,105}, Button { enabled, "/" } /* 14 */
  114. , {110,35,130,55}, Button { enabled, "C" } /* 15 */
  115. , {110,60,130,80}, Button { enabled, "=" } /* 16 */
  116. , {10,10,25,105}, EditText { disabled, "" } /* 17 */
  117. }
  118. };
  119. /* this ALRT and DITL are used as an About screen */
  120. resource 'ALRT' (rAboutAlert, purgeable) {
  121. {40, 20, 160, 290},
  122. rAboutAlert,
  123. {
  124. /* [1] */
  125. OK, visible, silent,
  126. /* [2] */
  127. OK, visible, silent,
  128. /* [3] */
  129. OK, visible, silent,
  130. /* [4] */
  131. OK, visible, silent
  132. }
  133. };
  134. resource 'DITL' (rAboutAlert, purgeable) {
  135. { /* array DITLarray: 5 elements */
  136. /* [1] */
  137. {88, 180, 108, 260},
  138. Button {
  139. enabled,
  140. "OK"
  141. },
  142. /* [2] */
  143. {8, 8, 24, 214},
  144. StaticText {
  145. disabled,
  146. "The IDispatch Calculator"
  147. }
  148. }
  149. };
  150. /* this ALRT and DITL are used as an error screen */
  151. resource 'ALRT' (rUserAlert, purgeable) {
  152. {40, 20, 120, 260},
  153. rUserAlert,
  154. { /* array: 4 elements */
  155. /* [1] */
  156. OK, visible, silent,
  157. /* [2] */
  158. OK, visible, silent,
  159. /* [3] */
  160. OK, visible, silent,
  161. /* [4] */
  162. OK, visible, silent
  163. }
  164. };
  165. resource 'DITL' (rUserAlert, purgeable) {
  166. {
  167. /* [1] */
  168. {50, 150, 70, 230},
  169. Button {
  170. enabled,
  171. "OK"
  172. },
  173. /* [2] */
  174. {10, 60, 30, 230},
  175. StaticText {
  176. disabled,
  177. "Error. ^0"
  178. },
  179. /* [3] */
  180. {8, 8, 40, 40},
  181. Icon {
  182. disabled,
  183. 2
  184. }
  185. }
  186. };
  187. resource 'SIZE' (-1) {
  188. dontSaveScreen,
  189. acceptSuspendResumeEvents,
  190. enableOptionSwitch,
  191. canBackground,
  192. multiFinderAware,
  193. backgroundAndForeground,
  194. dontGetFrontClicks,
  195. ignoreChildDiedEvents,
  196. is32BitCompatible,
  197. isHighLevelEventAware,
  198. localAndRemoteHLEvents,
  199. reserved,
  200. reserved,
  201. reserved,
  202. reserved,
  203. reserved,
  204. kPrefSize * 1024,
  205. kMinSize * 1024
  206. };
  207. resource 'BNDL' (128) {
  208. 'DCLC',
  209. 0,
  210. { /* array TypeArray: 2 elements */
  211. /* [1] */
  212. 'FREF',
  213. { /* array IDArray: 1 elements */
  214. /* [1] */
  215. 0, 128
  216. },
  217. /* [2] */
  218. 'ICN#',
  219. { /* array IDArray: 1 elements */
  220. /* [1] */
  221. 0, 128
  222. }
  223. }
  224. };
  225. resource 'FREF' (128) {
  226. 'APPL',
  227. 0,
  228. ""
  229. };
  230. data 'ICN#' (128) {
  231. $"003F FFFF 0040 0001 0040 0001 004F FFF9" /* .?��.@...@...O�� */
  232. $"0048 0009 0048 0009 0048 0009 004F FFF9" /* .H..H..H..O�� */
  233. $"0040 0001 0040 0001 004F FFF9 0048 8889" /* .@...@...O��.H�� */
  234. $"0048 8889 0048 8889 004F FFF9 0040 0001" /* .H��.H��.O��.@.. */
  235. $"004F FFF9 0048 8889 0048 8889 004C 8889" /* .O��.H��.H��.L�� */
  236. $"005F FFF9 0078 0001 01FF FFF9 00F8 8889" /* ._��.x...���.��� */
  237. $"0068 8889 0168 8889 064F FFF9 1E40 0001" /* .h��.h��.O��.@.. */
  238. $"7C40 0001 3C7F FFFF 183F FFFF 0800 0000" /* |@..<.�.?��.... */
  239. $"003F FFFF 007F FFFF 007F FFFF 007F FFFF" /* .?��..��..��..�� */
  240. $"007F FFFF 007F FFFF 007F FFFF 007F FFFF" /* ..��..��..��..�� */
  241. $"007F FFFF 007F FFFF 007F FFFF 007F FFFF" /* ..��..��..��..�� */
  242. $"007F FFFF 007F FFFF 007F FFFF 007F FFFF" /* ..��..��..��..�� */
  243. $"007F FFFF 007F FFFF 007F FFFF 007F FFFF" /* ..��..��..��..�� */
  244. $"007F FFFF 007F FFFF 01FF FFFF 00FF FFFF" /* ..��..��.���.��� */
  245. $"007F FFFF 017F FFFF 067F FFFF 1E7F FFFF" /* ..��..��..��..�� */
  246. $"7C7F FFFF 3C7F FFFF 183F FFFF 0800 0000" /* |.�<.�.?��.... */
  247. };
  248. data 'icl4' (128) {
  249. $"0000 0000 00FF FFFF FFFF FFFF FFFF FFFF" /* .....����������� */
  250. $"0000 0000 0F00 0000 0000 0000 0000 000F" /* ................ */
  251. $"0000 0000 0F0C CCCC CCCC CCCC CCCC CCDF" /* ......���������� */
  252. $"0000 0000 0F0C DDDD DDDD DDDD DDDD DCDF" /* ......���������� */
  253. $"0000 0000 0F0C DCCC CCCC CCCC CCCC 0CDF" /* ......��������.� */
  254. $"0000 0000 0F0C DCCC CCCC CCCC CCCC 0CDF" /* ......��������.� */
  255. $"0000 0000 0F0C DCCC CCCC CCCC CCCC 0CDF" /* ......��������.� */
  256. $"0000 0000 0F0C 0000 0000 0000 0000 0CDF" /* ...............*/
  257. $"0000 0000 0F0C CCCC CCCC CCCC CCCC CCDF" /* ......���������� */
  258. $"0000 0000 0F0C CCCC CCCC CCCC CCCC CCDF" /* ......���������� */
  259. $"0000 0000 0F0C DDDD DDDD DDDD DDDD DCDF" /* ......���������� */
  260. $"0000 0000 0F0C F00C F00C F00C F00C FCDF" /* .......�..�.�� */
  261. $"0000 0000 0F0C F0CD F0CD F0CD F0CD FCDF" /* ......���������� */
  262. $"0000 0000 0F0C FCDD FCDD FCDD FCDD FCDF" /* ......���������� */
  263. $"0000 0000 0F0C FFFF FFFF FFFF FFFF FCDF" /* ......���������� */
  264. $"0000 0000 0F0C CCCC CCCC CCCC CCCC CCDF" /* ......���������� */
  265. $"0000 0000 0F0C DDDD DDDD DDDD DDDD DCDF" /* ......���������� */
  266. $"0000 0000 0F0C F00C F00C F00C F00C FCDF" /* .......�..�.�� */
  267. $"0000 0000 0F0C F0CD F0CD F0CD F0CD FCDF" /* ......���������� */
  268. $"0000 0000 0F0C F3DD FCDD FCDD FCDD FCDF" /* ......���������� */
  269. $"0000 0000 0F03 3FFF FFFF FFFF FFFF FCDF" /* ......?��������� */
  270. $"0000 0000 033F 3CCC CCCC CCCC CCCC CCDF" /* .....?<��������� */
  271. $"0000 0003 33F3 DDDD DDDD DDDD DDDD DCDF" /* ....3����������� */
  272. $"0000 0000 3F33 F00C F00C F00C F00C FCDF" /* ....?3.�..�.�� */
  273. $"0000 0000 033C F0CD F0CD F0CD F0CD FCDF" /* .....<���������� */
  274. $"0000 0003 0F3C FCDD FCDD FCDD FCDD FCDF" /* .....<���������� */
  275. $"0000 0330 0F0C FFFF FFFF FFFF FFFF FCDF" /* ...0..���������� */
  276. $"0003 3F30 0F0C CCCC CCCC CCCC CCCC CCDF" /* ..?0..���������� */
  277. $"0333 F300 0F0D DDDD DDDD DDDD DDDD DDDF" /* .3..����������� */
  278. $"003F 3300 0FFF FFFF FFFF FFFF FFFF FFFF" /* .?3..����������� */
  279. $"0003 3000 00FF FFFF FFFF FFFF FFFF FFFF" /* ..0..����������� */
  280. $"0000 3000 0000 0000 0000 0000 0000 0000" /* ..0............. */
  281. };
  282. data 'DCLC' (0, "Owner resource") {
  283. $"00" /* . */
  284. };