Leaked source code of windows server 2003
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.

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