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.

349 lines
12 KiB

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name:
  4. tracer.rc
  5. Abstract:
  6. This module contains the resources of the tracer program.
  7. Author:
  8. Michael Tsang (MikeTs) 02-May-2000
  9. Environment:
  10. User mode
  11. Revision History:
  12. --*/
  13. #include "windows.h"
  14. #include "resid.h"
  15. #define VER_FILETYPE VFT_APP
  16. #define VER_FILESUBTYPE VFT_UNKNOWN
  17. #define VER_FILEDESCRIPTION_STR "Tracer"
  18. #define VER_INTERNALNAME_STR "Tracer"
  19. #define VER_ORIGINALFILENAME_STR "tracer.exe"
  20. IDI_TRACER ICON PRELOAD DISCARDABLE tracer.ico
  21. IDD_MENU MENU PRELOAD DISCARDABLE
  22. BEGIN
  23. POPUP "&File"
  24. BEGIN
  25. MENUITEM "&Save\tCtrl+S", M_SAVE
  26. MENUITEM "Save &As...", M_SAVEAS
  27. MENUITEM SEPARATOR
  28. MENUITEM "&Print...\tCtrl+P", M_PRINT
  29. MENUITEM SEPARATOR
  30. MENUITEM "E&xit", M_EXIT
  31. END
  32. POPUP "&Edit"
  33. BEGIN
  34. MENUITEM "&Clear", M_CLEAR
  35. MENUITEM SEPARATOR
  36. MENUITEM "&Find...\tCtrl+F", M_FIND
  37. MENUITEM "Find &Next\tF3", M_FINDNEXT
  38. MENUITEM "&Go To...\tCtrl+H", M_GOTO
  39. END
  40. POPUP "&Settings"
  41. BEGIN
  42. MENUITEM "&Word Wrap", M_WORDWRAP
  43. MENUITEM "&Font...", M_SETFONT
  44. MENUITEM "&Clients...", M_CLIENTS
  45. END
  46. POPUP "&Help"
  47. BEGIN
  48. MENUITEM "&Help Topics", M_HELP
  49. MENUITEM SEPARATOR
  50. MENUITEM "&About...", M_ABOUT
  51. END
  52. END
  53. IDD_GLOBALSETTINGS DIALOG DISCARDABLE 0, 0, 270, 220
  54. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  55. CAPTION "Global Settings"
  56. FONT 8, "MS Shell Dlg"
  57. BEGIN
  58. EDITTEXT IDC_GLOBALTRACE,10,10,30,12,ES_NUMBER
  59. CONTROL "",IDC_GLOBALTRACESPIN,"msctls_updown32",
  60. UDS_AUTOBUDDY|UDS_ARROWKEYS|UDS_ALIGNRIGHT|UDS_SETBUDDYINT,
  61. 20,10,10,12
  62. LTEXT "Default Client &Trace Level",IDC_GLOBALTRACETEXT,45,12,90,8
  63. EDITTEXT IDC_GLOBALVERBOSE,140,10,30,12,ES_NUMBER
  64. CONTROL "",IDC_GLOBALVERBOSESPIN,"msctls_updown32",
  65. UDS_AUTOBUDDY|UDS_ARROWKEYS|UDS_ALIGNRIGHT|UDS_SETBUDDYINT,
  66. 150,10,10,12
  67. LTEXT "Default Client &Verbose Level",IDC_GLOBALVERBOSETEXT,
  68. 175,12,90,8
  69. CONTROL "Default Client Trace to &Debugger",IDC_GLOBALTRACEDEBUGGER,
  70. "Button",BS_AUTOCHECKBOX|WS_TABSTOP,10,30,120,10
  71. END
  72. IDD_CLIENTSETTINGS DIALOG DISCARDABLE 0, 0, 270, 220
  73. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  74. CAPTION "Client Settings"
  75. FONT 8, "MS Shell Dlg"
  76. BEGIN
  77. EDITTEXT IDC_CLIENTTRACE,10,10,30,12,ES_NUMBER
  78. CONTROL "",IDC_CLIENTTRACESPIN,"msctls_updown32",
  79. UDS_AUTOBUDDY|UDS_ARROWKEYS|UDS_ALIGNRIGHT|UDS_SETBUDDYINT,
  80. 20,10,10,12
  81. LTEXT "Client &Trace Level",IDC_CLIENTTRACETEXT,45,12,80,8
  82. EDITTEXT IDC_CLIENTVERBOSE,140,10,30,12,ES_NUMBER
  83. CONTROL "",IDC_CLIENTVERBOSESPIN,"msctls_updown32",
  84. UDS_AUTOBUDDY|UDS_ARROWKEYS|UDS_ALIGNRIGHT|UDS_SETBUDDYINT,
  85. 150,10,10,12
  86. LTEXT "Client &Verbose Level",IDC_CLIENTVERBOSETEXT,175,12,80,8
  87. CONTROL "Client Trace to &Debugger",IDC_CLIENTTRACEDEBUGGER,
  88. "Button",BS_AUTOCHECKBOX|WS_TABSTOP,10,30,120,10
  89. CONTROL "Client Trigger Mode &Enabled",IDC_CLIENTTRIGGERTRACE,
  90. "Button",BS_AUTOCHECKBOX|WS_TABSTOP,10,45,120,10
  91. GROUPBOX "Client Trigger &Points",IDC_CLIENTTRIGPTGROUPBOX,
  92. 10,60,250,140
  93. LTEXT "Point 1",IDC_TRIGPT1_TEXT,15,70,30,8
  94. LTEXT "Trace",IDC_TRIGPT1_TRACE_TEXT,90,70,20,8
  95. LTEXT "Break",IDC_TRIGPT1_BREAK_TEXT,110,70,20,8
  96. EDITTEXT IDC_TRIGPT1,15,80,75,10,ES_AUTOHSCROLL
  97. CONTROL "",IDC_TRIGPT1_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  98. 95,80,10,10
  99. CONTROL "",IDC_TRIGPT1_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  100. 115,80,10,10
  101. LTEXT "Point 6",IDC_TRIGPT6_TEXT,140,70,30,8
  102. LTEXT "Trace",IDC_TRIGPT6_TRACE_TEXT,215,70,20,8
  103. LTEXT "Break",IDC_TRIGPT6_BREAK_TEXT,235,70,20,8
  104. EDITTEXT IDC_TRIGPT6,140,80,75,10,ES_AUTOHSCROLL
  105. CONTROL "",IDC_TRIGPT6_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  106. 220,80,10,10
  107. CONTROL "",IDC_TRIGPT6_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  108. 240,80,10,10
  109. LTEXT "Point 2",IDC_TRIGPT2_TEXT,15,95,30,8
  110. LTEXT "Trace",IDC_TRIGPT2_TRACE_TEXT,90,95,20,8
  111. LTEXT "Break",IDC_TRIGPT2_BREAK_TEXT,110,95,20,8
  112. EDITTEXT IDC_TRIGPT2,15,105,75,10,ES_AUTOHSCROLL
  113. CONTROL "",IDC_TRIGPT2_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  114. 95,105,10,10
  115. CONTROL "",IDC_TRIGPT2_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  116. 115,105,10,10
  117. LTEXT "Point 7",IDC_TRIGPT7_TEXT,140,95,30,8
  118. LTEXT "Trace",IDC_TRIGPT7_TRACE_TEXT,215,95,20,8
  119. LTEXT "Break",IDC_TRIGPT7_BREAK_TEXT,235,95,20,8
  120. EDITTEXT IDC_TRIGPT7,140,105,75,10,ES_AUTOHSCROLL
  121. CONTROL "",IDC_TRIGPT7_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  122. 220,105,10,10
  123. CONTROL "",IDC_TRIGPT7_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  124. 240,105,10,10
  125. LTEXT "Point 3",IDC_TRIGPT3_TEXT,15,120,30,8
  126. LTEXT "Trace",IDC_TRIGPT3_TRACE_TEXT,90,120,20,8
  127. LTEXT "Break",IDC_TRIGPT3_BREAK_TEXT,110,120,20,8
  128. EDITTEXT IDC_TRIGPT3,15,130,75,10,ES_AUTOHSCROLL
  129. CONTROL "",IDC_TRIGPT3_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  130. 95,130,10,10
  131. CONTROL "",IDC_TRIGPT3_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  132. 115,130,10,10
  133. LTEXT "Point 8",IDC_TRIGPT8_TEXT,140,120,30,8
  134. LTEXT "Trace",IDC_TRIGPT8_TRACE_TEXT,215,120,20,8
  135. LTEXT "Break",IDC_TRIGPT8_BREAK_TEXT,235,120,20,8
  136. EDITTEXT IDC_TRIGPT8,140,130,75,10,ES_AUTOHSCROLL
  137. CONTROL "",IDC_TRIGPT8_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  138. 220,130,10,10
  139. CONTROL "",IDC_TRIGPT8_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  140. 240,130,10,10
  141. LTEXT "Point 4",IDC_TRIGPT4_TEXT,15,145,30,8
  142. LTEXT "Trace",IDC_TRIGPT4_TRACE_TEXT,90,145,20,8
  143. LTEXT "Break",IDC_TRIGPT4_BREAK_TEXT,110,145,20,8
  144. EDITTEXT IDC_TRIGPT4,15,155,75,10,ES_AUTOHSCROLL
  145. CONTROL "",IDC_TRIGPT4_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  146. 95,155,10,10
  147. CONTROL "",IDC_TRIGPT4_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  148. 115,155,10,10
  149. LTEXT "Point 9",IDC_TRIGPT9_TEXT,140,145,30,8
  150. LTEXT "Trace",IDC_TRIGPT9_TRACE_TEXT,215,145,20,8
  151. LTEXT "Break",IDC_TRIGPT9_BREAK_TEXT,235,145,20,8
  152. EDITTEXT IDC_TRIGPT9,140,155,75,10,ES_AUTOHSCROLL
  153. CONTROL "",IDC_TRIGPT9_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  154. 220,155,10,10
  155. CONTROL "",IDC_TRIGPT9_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  156. 240,155,10,10
  157. LTEXT "Point 5",IDC_TRIGPT5_TEXT,15,170,30,8
  158. LTEXT "Trace",IDC_TRIGPT5_TRACE_TEXT,90,170,20,8
  159. LTEXT "Break",IDC_TRIGPT5_BREAK_TEXT,110,170,20,8
  160. EDITTEXT IDC_TRIGPT5,15,180,75,10,ES_AUTOHSCROLL
  161. CONTROL "",IDC_TRIGPT5_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  162. 95,180,10,10
  163. CONTROL "",IDC_TRIGPT5_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  164. 115,180,10,10
  165. LTEXT "Point 10",IDC_TRIGPT10_TEXT,140,170,30,8
  166. LTEXT "Trace",IDC_TRIGPT10_TRACE_TEXT,215,170,20,8
  167. LTEXT "Break",IDC_TRIGPT10_BREAK_TEXT,235,170,20,8
  168. EDITTEXT IDC_TRIGPT10,140,180,75,10,ES_AUTOHSCROLL
  169. CONTROL "",IDC_TRIGPT10_TRACE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  170. 220,180,10,10
  171. CONTROL "",IDC_TRIGPT10_BREAK,"Button",BS_AUTOCHECKBOX|WS_TABSTOP,
  172. 240,180,10,10
  173. END
  174. STRINGTABLE PRELOAD DISCARDABLE
  175. BEGIN
  176. IDS_APP "Tracer"
  177. IDS_TITLE " - Tracer"
  178. IDS_UNTITLED "Untitled"
  179. IDS_SAVEAS "Save As"
  180. IDS_TEXTFILES "Text Documents (*.txt)"
  181. IDS_ALLFILES "All Files (*.*)"
  182. IDS_CLIENT_SETTINGS "Client Settings"
  183. IDS_ERRSPACE "Memory full"
  184. IDS_GETSAVEFILENAME_FAILED "Failed to get save file name (err=%x)"
  185. IDS_CREATEFILE_FAILED "Failed to create file %s"
  186. IDS_WRITEFILE_FAILED "Failed to write file %s"
  187. IDS_CHOOSEFONT_FAILED "Failed to choose font (err=%x)"
  188. IDSERR_PROP_SHEET "Failed to bring up client settings (err=%x)"
  189. END
  190. #if 0
  191. #define GRP WS_GROUP
  192. #define TAB WS_TABSTOP
  193. #define TABGRP WS_TABSTOP | WS_GROUP
  194. #define DLGMODAL WS_POPUP | WS_DLGFRAME
  195. /* Version Stamping */
  196. #include "notepad.rcv"
  197. ID_APPICON ICON PRELOAD DISCARDABLE npapp.ico
  198. ID_ICON ICON PRELOAD DISCARDABLE notepad.ico
  199. ID_MENUBAR MENU PRELOAD DISCARDABLE
  200. BEGIN
  201. POPUP "&File"
  202. BEGIN
  203. MENUITEM "&New\tCtrl+N", M_NEW
  204. MENUITEM "&Open...\tCtrl+O", M_OPEN
  205. MENUITEM "&Save\tCtrl+S", M_SAVE
  206. MENUITEM "Save &As...", M_SAVEAS
  207. MENUITEM SEPARATOR
  208. MENUITEM "Page Set&up...", M_PAGESETUP
  209. MENUITEM "&Print...\tCtrl+P", M_PRINT
  210. MENUITEM SEPARATOR
  211. MENUITEM "E&xit", M_EXIT
  212. END
  213. POPUP "&Edit"
  214. BEGIN
  215. MENUITEM "&Undo\tCtrl+Z", M_UNDO
  216. MENUITEM SEPARATOR
  217. MENUITEM "Cu&t\tCtrl+X", M_CUT , GRAYED
  218. MENUITEM "&Copy\tCtrl+C", M_COPY, GRAYED
  219. MENUITEM "&Paste\tCtrl+V", M_PASTE, GRAYED
  220. MENUITEM "De&lete\tDel", M_CLEAR, GRAYED
  221. MENUITEM SEPARATOR
  222. MENUITEM "&Find...\tCtrl+F", M_FIND
  223. MENUITEM "Find &Next\tF3", M_FINDNEXT
  224. MENUITEM "&Replace...\tCtrl+H", M_REPLACE
  225. /*
  226. The hotkey used for replace is CTRL-H in most of the editors, and hence though
  227. this key may conflict with backspace key in IMEs, this key is used here to be compatible
  228. with all the editors. Please contact ChrisW/RajeshM for more details.
  229. */
  230. MENUITEM "&Go To...\tCtrl+G", M_GOTO
  231. MENUITEM SEPARATOR
  232. MENUITEM "Select &All\tCtrl+A", M_SELECTALL
  233. MENUITEM "Time/&Date\tF5", M_DATETIME
  234. END
  235. POPUP "F&ormat"
  236. BEGIN
  237. MENUITEM "&Word Wrap" M_WW
  238. MENUITEM "&Font...", M_SETFONT
  239. END
  240. POPUP "&Help"
  241. BEGIN
  242. MENUITEM "&Help Topics", M_HELP
  243. MENUITEM SEPARATOR
  244. MENUITEM "&About Notepad",M_ABOUT
  245. END
  246. END
  247. MainAcc ACCELERATORS PRELOAD DISCARDABLE
  248. BEGIN
  249. "^N", M_NEW
  250. "^O", M_OPEN
  251. "^S", M_SAVE
  252. "^P", M_PRINT
  253. VK_INSERT, M_COPY, VIRTKEY, CONTROL
  254. VK_F1, M_HELP, VIRTKEY
  255. VK_F3, M_FINDNEXT, VIRTKEY
  256. VK_F5, M_DATETIME, VIRTKEY
  257. "^G", M_GOTO
  258. "F", M_FIND , VIRTKEY, CONTROL, NOINVERT
  259. "H", M_REPLACE, VIRTKEY, CONTROL, NOINVERT
  260. VK_BACK, M_UNDO, VIRTKEY, ALT
  261. "^Z", M_UNDO
  262. "^X", M_CUT
  263. "^C", M_COPY
  264. "^V", M_PASTE
  265. "^A", M_SELECTALL
  266. END
  267. /* Allow exit using ^C, ^D or ^Z during Setup */
  268. SlipUpAcc ACCELERATORS PRELOAD DISCARDABLE
  269. BEGIN
  270. "^N", M_NEW
  271. "^O", M_OPEN
  272. "^S", M_SAVE
  273. "^P", M_PRINT
  274. VK_INSERT, M_COPY, VIRTKEY, CONTROL
  275. VK_F1, M_HELP, VIRTKEY
  276. VK_F3, M_FINDNEXT, VIRTKEY
  277. VK_F5, M_DATETIME, VIRTKEY
  278. "^G", M_GOTO
  279. "F", M_FIND, VIRTKEY, CONTROL, NOINVERT
  280. "H", M_REPLACE, VIRTKEY, CONTROL, NOINVERT
  281. VK_BACK, M_UNDO, VIRTKEY, ALT
  282. "^Z", M_UNDO
  283. "^X", M_CUT
  284. "^C", M_COPY
  285. "^V", M_PASTE
  286. "^A", M_SELECTALL
  287. VK_ESCAPE, M_EXIT, VIRTKEY
  288. 0x43, M_EXIT, VIRTKEY, CONTROL
  289. 0x44, M_EXIT, VIRTKEY, CONTROL
  290. 0x5A, M_EXIT, VIRTKEY, CONTROL
  291. END
  292. STRINGTABLE PRELOAD DISCARDABLE
  293. BEGIN
  294. IDS_MERGE1 "%%"
  295. END
  296. /* Include other dialogs. */
  297. rcinclude notepad.dlg
  298. #endif
  299. #include <ntverp.h>
  300. #include "common.ver"