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.

276 lines
11 KiB

  1. /*++
  2. Copyright (C) 1993-1999 Microsoft Corporation
  3. Module Name:
  4. smonctrl.rc
  5. Abstract:
  6. Resources for sysmon.ocx.
  7. --*/
  8. #include <windows.h>
  9. #include <winver.h>
  10. #include "resource.h"
  11. #include "genprop.h"
  12. #include "grphprop.h"
  13. #include "ctrprop.h"
  14. #include "srcprop.h"
  15. #include "appearprop.h"
  16. #include "smonhelp.h" // Help file constants
  17. RCINCLUDE strings.rc
  18. // This is the default for iconic representations.
  19. IDR_ICON ICON res\smgraph.ico
  20. // Bitmap for the snapshot button
  21. IDB_SNAPBTN BITMAP res\snapbtn.bmp
  22. IDB_TOOLBAR BITMAP res\toolbar.bmp
  23. // Cursors for resize/move
  24. IDC_CURS_MOVE CURSOR res\move.cur
  25. IDC_CURS_NS CURSOR res\ns.cur
  26. IDC_CURS_WE CURSOR res\we.cur
  27. IDC_CURS_NWSE CURSOR res\nwse.cur
  28. IDC_CURS_NESW CURSOR res\nesw.cur
  29. 1 TYPELIB "sysmon.tlb"
  30. // Context menu
  31. IDM_CONTEXT MENU
  32. BEGIN
  33. POPUP "Context"
  34. BEGIN
  35. MENUITEM "A&dd Counters...", IDM_ADDCOUNTERS
  36. MENUITEM "Save &As...", IDM_SAVEAS
  37. MENUITEM "Save &Data As...", IDM_SAVEDATA
  38. MENUITEM SEPARATOR
  39. MENUITEM "P&roperties...", IDM_PROPERTIES
  40. END
  41. END
  42. // General property page
  43. IDD_GEN_PROPP_DLG DIALOGEX 0, 0, 260, 218
  44. STYLE DS_CONTEXTHELP | WS_CHILD
  45. FONT 8, "MS Shell Dlg"
  46. BEGIN
  47. GROUPBOX "View",1000,7,7,246,32,WS_GROUP
  48. CONTROL "&Graph",IDC_GALLERY_GRAPH,"Button",BS_AUTORADIOBUTTON |
  49. BS_TOP | BS_MULTILINE | WS_GROUP | WS_TABSTOP,17,19,62,
  50. 10,0,IDH_GALLERY_GRAPH
  51. CONTROL "&Histogram",IDC_GALLERY_HISTOGRAM,"Button",
  52. BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE,88,19,79,10,0,
  53. IDH_GALLERY_HISTOGRAM
  54. CONTROL "&Report",IDC_GALLERY_REPORT,"Button",BS_AUTORADIOBUTTON |
  55. BS_TOP | BS_MULTILINE,170,19,76,10,0,IDH_GALLERY_REPORT
  56. GROUPBOX "Display elements",IDC_STATIC,7,44,246,32, WS_GROUP
  57. CONTROL "&Legend",IDC_LEGEND,"Button",BS_AUTOCHECKBOX | BS_TOP |
  58. BS_MULTILINE | WS_GROUP | WS_TABSTOP,17,56,62,10,0,
  59. IDH_LEGEND
  60. CONTROL "&Value bar",IDC_VALUEBAR,"Button",BS_AUTOCHECKBOX |
  61. BS_TOP | BS_MULTILINE | WS_TABSTOP,88,56,78,10,0,
  62. IDH_VALUEBAR
  63. CONTROL "&Toolbar",IDC_TOOLBAR,"Button",BS_AUTOCHECKBOX | BS_TOP |
  64. BS_MULTILINE | WS_TABSTOP,170,56,76,10,0,IDH_TOOLBAR
  65. GROUPBOX "Report and histogram data",IDC_GROUPREPORTVALUE,7,81,246,46
  66. CONTROL "&Default",IDC_RPT_VALUE_DEFAULT,"Button",
  67. BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE | WS_GROUP |
  68. WS_TABSTOP,17,93,70,10,0,IDH_RPT_VALUE_DEFAULT
  69. CONTROL "&Current",IDC_RPT_VALUE_CURRENT,"Button",
  70. BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE,17,108,70,10,
  71. 0,IDH_RPT_VALUE_CURRENT
  72. CONTROL "&Minimum",IDC_RPT_VALUE_MINIMUM,"Button",
  73. BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE,88,93,70,10,
  74. 0,IDH_RPT_VALUE_MINIMUM
  75. CONTROL "Ma&ximum",IDC_RPT_VALUE_MAXIMUM,"Button",
  76. BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE,88,108,70,10,
  77. 0,IDH_RPT_VALUE_MAXIMUM
  78. CONTROL "Av&erage",IDC_RPT_VALUE_AVERAGE,"Button",
  79. BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE,170,93,70,10,
  80. 0,IDH_RPT_VALUE_AVERAGE
  81. LTEXT "Appeara&nce:",IDC_APPEARANCE,7,133,79,8
  82. COMBOBOX IDC_COMBOAPPEARANCE,7,143,80,40,CBS_DROPDOWNLIST |
  83. WS_VSCROLL | WS_TABSTOP,0,IDH_COMBOAPPEARANCE
  84. LTEXT "&Border:",IDC_BORDERSTYLE,100,133,79,8
  85. COMBOBOX IDC_COMBOBORDERSTYLE,100,143,80,40,CBS_DROPDOWNLIST |
  86. WS_VSCROLL | WS_TABSTOP,0,IDH_COMBOBORDERSTYLE
  87. CONTROL "&Sample automatically every:",IDC_PERIODIC_UPDATE,
  88. "Button",BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE |
  89. WS_GROUP | WS_TABSTOP,7,166,115,12,0,
  90. IDH_PERIODIC_UPDATE
  91. EDITTEXT IDC_UPDATE_INTERVAL,123,163,55,14,ES_AUTOHSCROLL |
  92. ES_NUMBER,0,IDH_UPDATE_INTERVAL
  93. LTEXT "seconds",IDC_INTERVAL_LABEL,183,166,77,8
  94. // LTEXT "D&isplay automatically every:",IDC_DISPLAY_INT_LABEL1,
  95. // 19,182, 98, 8, 0, 0
  96. // EDITTEXT IDC_DISPLAY_INTERVAL,123,180,55,14,ES_AUTOHSCROLL |
  97. // ES_NUMBER,0 ,IDH_DISPLAY_INTERVAL
  98. // LTEXT "samples",IDC_DISPLAY_INT_LABEL2,183,182,56,8
  99. CONTROL "Allo&w duplicate counter instances",IDC_DUPLICATE_INSTANCE,"Button",
  100. BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP,7,
  101. 182,246,10,0,IDH_DUPLICATE_INSTANCE
  102. END
  103. // Graph Property page
  104. IDD_GRAPH_PROPP_DLG DIALOGEX 0, 0, 260, 218
  105. STYLE DS_CONTEXTHELP | WS_CHILD
  106. FONT 8, "MS Shell Dlg"
  107. BEGIN
  108. LTEXT "&Title:",110,7,10,40,8
  109. EDITTEXT IDC_GRAPH_TITLE,62,7,168,14,ES_AUTOHSCROLL,0,
  110. IDH_GRAPH_TITLE
  111. LTEXT "V&ertical axis:",111,7,28,45,8
  112. EDITTEXT IDC_YAXIS_TITLE,62,25,168,14,ES_AUTOHSCROLL,0,
  113. IDH_YAXIS_TITLE
  114. LTEXT "Show:",IDC_STATIC,7,49,246,8
  115. CONTROL "&Vertical grid",IDC_VERTICAL_GRID,"Button",
  116. BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP,7,
  117. 64,240,10,0,IDH_VERTICAL_GRID
  118. CONTROL "&Horizontal grid",IDC_HORIZONTAL_GRID,"Button",
  119. BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP,7,
  120. 79,238,10,0,IDH_HORIZONTAL_GRID
  121. CONTROL "Vertical &scale numbers",IDC_VERTICAL_LABELS,"Button",
  122. BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP,7,
  123. 94,238,10,0,IDH_VERTICAL_LABELS
  124. GROUPBOX "Vertical scale",112,7,114,246,54
  125. LTEXT "&Maximum:",108,17,129,32,8
  126. EDITTEXT IDC_VERTICAL_MAX,62,126,65,14,ES_AUTOHSCROLL | ES_NUMBER,
  127. 0,IDH_VERTICAL_MAX
  128. LTEXT "Mi&nimum:",109,17,147,34,8
  129. EDITTEXT IDC_VERTICAL_MIN,62,144,65,14,ES_AUTOHSCROLL | ES_NUMBER,
  130. 0,IDH_VERTICAL_MIN
  131. END
  132. // Counters property page
  133. IDD_CTR_PROPP_DLG DIALOGEX 0, 0, 260, 218
  134. STYLE DS_CONTEXTHELP | WS_CHILD
  135. FONT 8, "MS Shell Dlg"
  136. BEGIN
  137. LTEXT "Co&unters:",IDC_STATIC,7,7,246,8
  138. LISTBOX IDC_CTRLIST,7,17,246,137,WS_VSCROLL | WS_HSCROLL |
  139. WS_TABSTOP,0,IDH_CTRLIST
  140. PUSHBUTTON "A&dd...",IDC_ADDCTR,7,154,50,14,0,0,IDH_ADDCTR
  141. PUSHBUTTON "&Remove",IDC_DELCTR,61,154,50,14,0,0,IDH_DELCTR
  142. LTEXT "&Color:",IDC_LABEL_LINECOLOR,7,182,20,8
  143. COMBOBOX IDC_LINECOLOR,38,178,58,80,CBS_DROPDOWNLIST |
  144. CBS_OWNERDRAWFIXED | WS_VSCROLL | WS_TABSTOP,0,
  145. IDH_LINECOLOR
  146. LTEXT "&Scale:",IDC_LABEL_LINESCALE,7,202,20,8
  147. COMBOBOX IDC_LINESCALE,38,199,58,80,CBS_DROPDOWNLIST |
  148. WS_VSCROLL | WS_TABSTOP,0,
  149. IDH_LINESCALE
  150. LTEXT "&Width:",IDC_LABEL_LINEWIDTH,118,182,23,8
  151. COMBOBOX IDC_LINEWIDTH,147,178,58,80,CBS_DROPDOWNLIST |
  152. CBS_OWNERDRAWFIXED | WS_VSCROLL | WS_TABSTOP,0,
  153. IDH_LINEWIDTH
  154. LTEXT "Styl&e:",IDC_LABEL_LINESTYLE,118,202,23,8
  155. COMBOBOX IDC_LINESTYLE,147,199,58,80,CBS_DROPDOWNLIST |
  156. CBS_OWNERDRAWFIXED | WS_VSCROLL | WS_TABSTOP,0,
  157. IDH_LINESTYLE
  158. END
  159. // Counter source property page
  160. IDD_SRC_PROPP_DLG DIALOGEX 0, 0, 260, 218
  161. STYLE DS_CONTEXTHELP | WS_CHILD
  162. FONT 8, "MS Shell Dlg"
  163. BEGIN
  164. GROUPBOX "Data source",IDC_SRC_GROUP,7,2,246,138
  165. CONTROL "&Current activity",IDC_SRC_REALTIME,"Button",
  166. BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE | WS_GROUP |
  167. WS_TABSTOP,17,11,64,10,0,IDH_SRC_REALTIME
  168. CONTROL "&Log files:",IDC_SRC_LOGFILE,"Button",
  169. BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE,17,22,44,10,0,
  170. IDH_SRC_LOGFILE
  171. CONTROL "Data&base:",IDC_SRC_SQL,"Button",BS_AUTORADIOBUTTON |
  172. BS_TOP | BS_MULTILINE,17,92,46,10,
  173. 0,IDH_SRC_SQL
  174. LISTBOX IDC_LIST_LOGFILENAME,29,35,217,42,WS_VSCROLL |
  175. WS_HSCROLL | WS_GROUP, 0,IDH_LOGFILENAME
  176. PUSHBUTTON "A&dd...",IDC_ADDFILE,29,75,50,14,0,0,IDH_ADDFILE
  177. PUSHBUTTON "&Remove",IDC_REMOVEFILE,83,75,50,14,0,0,IDH_REMOVEFILE
  178. LTEXT "System DS&N:",IDC_STATIC_DSN,29,106,50,10
  179. COMBOBOX IDC_DSN_COMBO,83,103,163,50,CBS_DROPDOWNLIST| CBS_SORT |
  180. WS_VSCROLL | WS_TABSTOP,
  181. 0,IDH_DSN_COMBO
  182. LTEXT "Log &set:",IDC_STATIC_LOGSET,29,124,50,10
  183. COMBOBOX IDC_LOGSET_COMBO,83,122,163,60,CBS_DROPDOWNLIST |
  184. CBS_SORT | WS_VSCROLL | WS_TABSTOP,
  185. 0,IDH_LOGSET_COMBO
  186. PUSHBUTTON "&Time Range",IDC_TIMESELECTBTN,7,143,60,14,
  187. 0,0,IDH_TIMESELECTBTN
  188. CONTROL "Custom1",IDC_TIMERANGE,"TimeRange",WS_TABSTOP,7,161,242,
  189. 46,0, IDH_TIMERANGE
  190. CTEXT "Total range",IDC_STATIC_TOTAL,79,152,91,8
  191. CTEXT "View range",IDC_STATIC_SELECTED,81,209,90,10
  192. END
  193. IDD_APPEAR_PROPP_DLG DIALOGEX 0, 0, 260, 218
  194. STYLE DS_CONTEXTHELP | WS_CHILD
  195. FONT 8, "MS Shell Dlg"
  196. BEGIN
  197. GROUPBOX "Color",IDC_STATIC_COLOR,7,5,246,59
  198. COMBOBOX IDC_COLOROBJECTS,20,21,156,61,CBS_DROPDOWNLIST |
  199. CBS_SORT | WS_VSCROLL | WS_TABSTOP, 0, IDH_COLOROBJECTS
  200. PUSHBUTTON "&Change",IDC_COLORBUTTON,20,40,50,14,0, 0, IDH_COLORBUTTON
  201. CONTROL "Color",IDC_COLORSAMPLE,"Button",BS_OWNERDRAW | BS_ICON,
  202. 86,40,90,14,WS_EX_CLIENTEDGE | WS_EX_STATICEDGE, IDH_COLORSAMPLE
  203. GROUPBOX "Font",IDC_STATIC_FONT,7,66,246,58
  204. PUSHBUTTON "C&hange",IDC_FONTBUTTON,20,83,51,14,0, 0, IDH_FONTBUTTON
  205. CTEXT "AaBbCc",IDC_FONTSAMPLE,86,83,90,29,SS_CENTERIMAGE |
  206. SS_SUNKEN, 0, IDH_FONTSAMPLE
  207. END
  208. IDD_SAVEDATA_DLG DIALOG DISCARDABLE 0, 0, 343, 20
  209. STYLE WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | DS_3DLOOK | DS_CONTROL
  210. CAPTION "Save Data As Log File"
  211. FONT 8, "MS Shell Dlg"
  212. BEGIN
  213. LTEXT "Reduce log file size by only writing one out of every",
  214. -1,67,3,164,9
  215. EDITTEXT IDC_SAVEDATA_EDIT,235,1,26,14,ES_RIGHT | ES_AUTOHSCROLL |
  216. ES_NUMBER
  217. LTEXT "original log records.",-1,268,3,68,9
  218. END
  219. // Accelerator table
  220. ID_SMONACCEL ACCELERATORS
  221. begin
  222. "^E", IDM_TB_NEW
  223. "^D", IDM_TB_CLEAR
  224. "^T", IDM_TB_REALTIME
  225. "^L", IDM_TB_LOGFILE
  226. "^G", IDM_TB_CHART
  227. "^B", IDM_TB_HISTOGRAM
  228. "^R", IDM_TB_REPORT
  229. "^I", IDM_TB_ADD
  230. VK_DELETE, IDM_TB_DELETE, VIRTKEY
  231. "^H", IDM_TB_HIGHLIGHT
  232. "^C", IDM_TB_COPY
  233. "^V", IDM_TB_PASTE
  234. "^Q", IDM_TB_PROPERTIES
  235. "^F", IDM_TB_FREEZE
  236. "^U", IDM_TB_UPDATE
  237. VK_F1, IDM_TB_HELP, VIRTKEY
  238. end
  239. //
  240. // Version resources
  241. //
  242. #include <ntverp.h>
  243. #define VER_FILETYPE VFT_DLL
  244. #define VER_FILESUBTYPE VFT2_UNKNOWN
  245. #define VER_FILEDESCRIPTION_STR "System Monitor Control"
  246. #define VER_INTERNALNAME_STR "SYSMON.OCX"
  247. #define VER_ORIGINALFILENAME_STR "SYSMON.OCX"
  248. #define VER_OLESELFREGISTER
  249. #include <common.ver>