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.

326 lines
12 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: HelpArr.h
  8. //
  9. // Resource file: \\kernel\razzle2\src\admin\activec\nodemgr\nodemgr.rc
  10. //
  11. // Help file: mmc.hlp
  12. //
  13. // Help Source file: mmcnd_cs.rtf
  14. //
  15. // Help IDs file: mmcndmgr.h
  16. //
  17. // Authored: John Mikesell (a-jmike) 06/08/99
  18. //--------------------------------------------------------------------------
  19. #ifndef _HELPARR_H_
  20. #define _HELPARR_H_
  21. #ifndef IDH_DISABLEHELP
  22. #define IDH_DISABLEHELP ((DWORD)-1)
  23. #endif
  24. #define IDH_ACTIVEX_PROPPAGE1_DISPLAYTX 1001
  25. #define IDH_COLUMNS_COLUMNS_ADD_BTN 1002
  26. #define IDH_COLUMNS_COLUMNS_DISPLAYED_LIST 1003
  27. #define IDH_COLUMNS_COLUMNS_HIDDEN_LIST 1004
  28. #define IDH_COLUMNS_COLUMNS_MOVEDOWN_BTN 1005
  29. #define IDH_COLUMNS_COLUMNS_MOVEUP_BTN 1006
  30. #define IDH_COLUMNS_COLUMNS_REMOVE_BTN 1007
  31. #define IDH_COLUMNS_COLUMNS_RESET_BTN 1008
  32. #define IDH_CUSTOMIZE_VIEW_CUST_CONSOLE_TREE 1009
  33. #define IDH_CUSTOMIZE_VIEW_CUST_DESC_BAR 1010
  34. #define IDH_CUSTOMIZE_VIEW_CUST_SNAPIN_BUTTONS 1011
  35. #define IDH_CUSTOMIZE_VIEW_CUST_SNAPIN_MENUS 1012
  36. #define IDH_CUSTOMIZE_VIEW_CUST_STATUS_BAR 1013
  37. #define IDH_CUSTOMIZE_VIEW_CUST_STD_BUTTONS 1014
  38. #define IDH_CUSTOMIZE_VIEW_CUST_STD_MENUS 1015
  39. #define IDH_CUSTOMIZE_VIEW_CUST_TASKPAD_TABS 1016
  40. #define IDH_HTML_PROPPAGE1_CHANGEICONBT 1019
  41. #define IDH_HTML_PROPPAGE1_DISPLAYTX 1020
  42. #define IDH_HTML_PROPPAGE1_FINDTARGETBT 1021
  43. #define IDH_HTML_PROPPAGE1_TARGETTX 1022
  44. #define IDH_MONITOR_PROPPAGE1_CTRLPROPERTIES 1023
  45. #define IDH_NOPROPS_PROPPAGE_NOPROPS 1024
  46. #define IDH_ORDER_DIALOG_LIST 1025
  47. #define IDH_ORDER_DIALOG_MOVE_DOWN 1026
  48. #define IDH_ORDER_DIALOG_MOVE_UP 1027
  49. #define IDH_RETARGET_TASKPAD_RetargetRootTree 1028
  50. #define IDH_SHORTCUT_PROPPAGE1_CHANGEICONBT 1029
  51. #define IDH_SHORTCUT_PROPPAGE1_FINDTARGETBT 1030
  52. #define IDH_SHORTCUT_PROPPAGE1_RUNTX 1031
  53. #define IDH_SHORTCUT_PROPPAGE1_STARTINTX 1032
  54. #define IDH_SHORTCUT_PROPPAGE1_TARGETTX 1033
  55. #define IDH_SNAPIN_ABOUT_COMPANY_NAME 1034
  56. #define IDH_SNAPIN_ABOUT_DESCRIPTION 1035
  57. #define IDH_SNAPIN_ABOUT_SNAPIN_NAME 1036
  58. #define IDH_SNAPIN_ABOUT_VERSION 1037
  59. #define IDH_SNAPIN_DESCR 1038
  60. #define IDH_SNAPIN_EXTENSION_PROPP_EXTENSION_LIST 1039
  61. #define IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_ABOUT 1040
  62. #define IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_COMBOEX 1041
  63. #define IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_DESCR 1042
  64. #define IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_ENABLEALL 1043
  65. #define IDH_SNAPIN_MANAGER_ADD_SNAPIN_LV 1044
  66. #define IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_ABOUT 1045
  67. #define IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_ADDED_LIST 1046
  68. #define IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_COMBOEX 1047
  69. #define IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_DESCR 1048
  70. #define IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_MANAGER_ADD 1049
  71. #define IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_MANAGER_DELETE 1050
  72. #define IDH_SNAPIN_STANDALONE_PROPP_TOOLBAR 1051
  73. #define IDH_TASK_PROPS_CMDLINE_PAGE_BrowseForArguments 1052
  74. #define IDH_TASK_PROPS_CMDLINE_PAGE_BrowseForCommand 1053
  75. #define IDH_TASK_PROPS_CMDLINE_PAGE_BrowseForWorkingDir 1054
  76. #define IDH_TASK_PROPS_CMDLINE_PAGE_Command 1055
  77. #define IDH_TASK_PROPS_CMDLINE_PAGE_CommandArgs 1056
  78. #define IDH_TASK_PROPS_CMDLINE_PAGE_CommandWindowStateCombo 1057
  79. #define IDH_TASK_PROPS_CMDLINE_PAGE_CommandWorkingDir 1058
  80. #define IDH_TASK_PROPS_NAME_PAGE_TaskDescription 1059
  81. #define IDH_TASK_PROPS_NAME_PAGE_TaskName 1060
  82. #define IDH_TASK_PROPS_SYMBOL_PAGE_DESCRIPTION 1061
  83. #define IDH_TASK_PROPS_SYMBOL_PAGE_DESCRIPTION2 1062
  84. #define IDH_TASK_PROPS_SYMBOL_PAGE_GLYPH_LIST 1063
  85. #define IDH_TASKPAD_ADVANCED_DontUseForSimilarNodes 1064
  86. #define IDH_TASKPAD_ADVANCED_SetDefaultForNodetype 1065
  87. #define IDH_TASKPAD_ADVANCED_UseForSimilarNodes 1066
  88. #define IDH_TASKPAD_GENERAL_Options 1067
  89. #define IDH_TASKPAD_GENERAL_STYLE_DESCRIPTION 1068
  90. #define IDH_TASKPAD_GENERAL_Style_HorizontalList 1069
  91. #define IDH_TASKPAD_GENERAL_Style_SizeCombo 1070
  92. #define IDH_TASKPAD_GENERAL_Style_TasksOnly 1071
  93. #define IDH_TASKPAD_GENERAL_Style_TextDesc 1072
  94. #define IDH_TASKPAD_GENERAL_Style_TooltipDesc 1073
  95. #define IDH_TASKPAD_GENERAL_Style_VerticalList 1074
  96. #define IDH_TASKPAD_GENERAL_TASKPAD_DESCRIPTION 1075
  97. #define IDH_TASKPAD_GENERAL_TASKPAD_TITLE 1076
  98. #define IDH_TASKPAD_GENERAL_TaskpadPreview 1077
  99. #define IDH_TASKS_LIST_TASKS 1078
  100. #define IDH_TASKS_MODIFY 1079
  101. #define IDH_TASKS_MOVE_DOWN 1080
  102. #define IDH_TASKS_MOVE_UP 1081
  103. #define IDH_TASKS_NEW_TASK_BT 1082
  104. #define IDH_TASKS_REMOVE_TASK 1083
  105. #define IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_DOWNLOAD 1084
  106. #define IDH_SNAPIN_MANAGER_ADD_SNAPIN_DESCR 1085
  107. #define IDH_Style_HideNormalTab 4162
  108. const DWORD g_aHelpIDs_IDD_SNAPIN_ABOUT[]=
  109. {
  110. IDC_APPICON, IDH_DISABLEHELP,
  111. IDC_COMPANY_NAME, IDH_SNAPIN_ABOUT_COMPANY_NAME,
  112. IDC_DESCRIPTION, IDH_SNAPIN_ABOUT_DESCRIPTION,
  113. IDC_LINE, IDH_DISABLEHELP,
  114. IDC_SNAPIN_NAME, IDH_SNAPIN_ABOUT_SNAPIN_NAME,
  115. IDC_VERSION, IDH_SNAPIN_ABOUT_VERSION,
  116. 0, 0
  117. };
  118. const DWORD g_aHelpIDs_IDD_ACTIVEX_PROPPAGE1[]=
  119. {
  120. IDC_DISPLAYTX, IDH_ACTIVEX_PROPPAGE1_DISPLAYTX,
  121. 0, 0
  122. };
  123. const DWORD g_aHelpIDs_IDD_SHORTCUT_PROPPAGE1[]=
  124. {
  125. IDC_TARGETTX, IDH_SHORTCUT_PROPPAGE1_TARGETTX,
  126. IDC_FINDTARGETBT, IDH_SHORTCUT_PROPPAGE1_FINDTARGETBT,
  127. IDC_CHANGEICONBT, IDH_SHORTCUT_PROPPAGE1_CHANGEICONBT,
  128. 0, 0
  129. };
  130. const DWORD g_aHelpIDs_IDD_HTML_PROPPAGE1[]=
  131. {
  132. IDC_DISPLAYTX, IDH_HTML_PROPPAGE1_DISPLAYTX,
  133. IDC_TARGETTX, IDH_HTML_PROPPAGE1_TARGETTX,
  134. IDC_FINDTARGETBT, IDH_HTML_PROPPAGE1_FINDTARGETBT,
  135. IDC_CHANGEICONBT, IDH_HTML_PROPPAGE1_CHANGEICONBT,
  136. 0, 0
  137. };
  138. const DWORD g_aHelpIDs_IDD_MONITOR_PROPPAGE1[]=
  139. {
  140. IDC_CTRLPROPERTIES, IDH_MONITOR_PROPPAGE1_CTRLPROPERTIES,
  141. 0, 0
  142. };
  143. const DWORD g_aHelpIDs_IDD_NOPROPS_PROPPAGE[]=
  144. {
  145. IDC_NOPROPS, IDH_NOPROPS_PROPPAGE_NOPROPS,
  146. 0, 0
  147. };
  148. const DWORD g_aHelpIDs_IDD_SNAPIN_MANAGER_ADD[]=
  149. {
  150. IDC_SNAPIN_LV, IDH_SNAPIN_MANAGER_ADD_SNAPIN_LV,
  151. IDC_SNAPIN_DESCR, IDH_SNAPIN_MANAGER_ADD_SNAPIN_DESCR,
  152. 0, 0
  153. };
  154. const DWORD g_aHelpIDs_IDD_SNAPIN_STANDALONE_PROPP[]=
  155. {
  156. IDC_SNAPIN_DESCR, IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_DESCR,
  157. IDC_SNAPIN_MANAGER_ADD, IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_MANAGER_ADD,
  158. IDC_SNAPIN_MANAGER_DELETE, IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_MANAGER_DELETE,
  159. IDC_SNAPIN_ADDED_LIST, IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_ADDED_LIST,
  160. IDC_SNAPIN_ABOUT, IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_ABOUT,
  161. IDC_SNAPIN_COMBOEX, IDH_SNAPIN_STANDALONE_PROPP_SNAPIN_COMBOEX,
  162. IDC_TOOLBAR, IDH_SNAPIN_STANDALONE_PROPP_TOOLBAR,
  163. IDC_VTHELPER, IDH_DISABLEHELP,
  164. 0, 0
  165. };
  166. const DWORD g_aHelpIDs_IDD_SNAPIN_EXTENSION_PROPP[]=
  167. {
  168. IDC_SNAPIN_LABEL, IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_COMBOEX,
  169. IDC_SNAPIN_DESCR, IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_DESCR,
  170. IDC_SNAPIN_ABOUT, IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_ABOUT,
  171. IDC_SNAPIN_COMBOEX, IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_COMBOEX,
  172. IDC_SNAPIN_DOWNLOAD, IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_DOWNLOAD,
  173. IDC_EXTENSION_LIST, IDH_SNAPIN_EXTENSION_PROPP_EXTENSION_LIST,
  174. IDC_VTHELPER, IDH_DISABLEHELP,
  175. IDC_EXTENSION_LABEL, IDH_SNAPIN_EXTENSION_PROPP_EXTENSION_LIST,
  176. IDC_SNAPIN_ENABLEALL, IDH_SNAPIN_EXTENSION_PROPP_SNAPIN_ENABLEALL,
  177. 0, 0
  178. };
  179. // HELP: Gave proper IDs instead of numbers from nodemgr.rc
  180. const DWORD g_aHelpIDs_IDD_COLUMNS[]=
  181. {
  182. IDC_HIDDEN_COLUMNS, IDH_COLUMNS_COLUMNS_HIDDEN_LIST,
  183. IDC_ADD_COLUMNS, IDH_COLUMNS_COLUMNS_ADD_BTN,
  184. IDC_REMOVE_COLUMNS, IDH_COLUMNS_COLUMNS_REMOVE_BTN,
  185. IDC_RESTORE_DEFAULT_COLUMNS, IDH_COLUMNS_COLUMNS_RESET_BTN,
  186. IDC_DISPLAYED_COLUMNS, IDH_COLUMNS_COLUMNS_DISPLAYED_LIST,
  187. IDC_MOVEUP_COLUMN, IDH_COLUMNS_COLUMNS_MOVEUP_BTN,
  188. IDC_MOVEDOWN_COLUMN, IDH_COLUMNS_COLUMNS_MOVEDOWN_BTN,
  189. 65535, IDH_DISABLEHELP,
  190. 0, 0
  191. };
  192. const DWORD g_aHelpIDs_IDD_CUSTOMIZE_VIEW[]=
  193. {
  194. IDC_CUST_VIEW_CAPTION, -1, // prevent help from showing for static text
  195. IDC_CUST_CONSOLE_TREE, IDH_CUSTOMIZE_VIEW_CUST_CONSOLE_TREE,
  196. IDC_CUST_STD_MENUS, IDH_CUSTOMIZE_VIEW_CUST_STD_MENUS,
  197. IDC_CUST_STD_BUTTONS, IDH_CUSTOMIZE_VIEW_CUST_STD_BUTTONS,
  198. IDC_CUST_STATUS_BAR, IDH_CUSTOMIZE_VIEW_CUST_STATUS_BAR,
  199. IDC_CUST_DESC_BAR, IDH_CUSTOMIZE_VIEW_CUST_DESC_BAR,
  200. IDC_CUST_TASKPAD_TABS, IDH_CUSTOMIZE_VIEW_CUST_TASKPAD_TABS,
  201. IDC_CUST_SNAPIN_MENUS, IDH_CUSTOMIZE_VIEW_CUST_SNAPIN_MENUS,
  202. IDC_CUST_SNAPIN_BUTTONS,IDH_CUSTOMIZE_VIEW_CUST_SNAPIN_BUTTONS,
  203. 0, 0
  204. };
  205. const DWORD g_aHelpIDs_IDD_ORDER_DIALOG[]=
  206. {
  207. IDC_MOVE_UP, IDH_ORDER_DIALOG_MOVE_UP,
  208. IDC_MOVE_DOWN, IDH_ORDER_DIALOG_MOVE_DOWN,
  209. 0, 0
  210. };
  211. const DWORD g_aHelpIDs_IDD_TASK_PROPS_CMDLINE_PAGE[]=
  212. {
  213. IDC_CommandLabel, IDH_TASK_PROPS_CMDLINE_PAGE_Command,
  214. IDC_Command, IDH_TASK_PROPS_CMDLINE_PAGE_Command,
  215. IDC_CommandArgsLabel, IDH_TASK_PROPS_CMDLINE_PAGE_CommandArgs,
  216. IDC_CommandArgs, IDH_TASK_PROPS_CMDLINE_PAGE_CommandArgs,
  217. IDC_CommandWorkingDirLabel, IDH_TASK_PROPS_CMDLINE_PAGE_CommandWorkingDir,
  218. IDC_CommandWorkingDir, IDH_TASK_PROPS_CMDLINE_PAGE_CommandWorkingDir,
  219. IDC_CommandWindowStateComboLabel, IDH_TASK_PROPS_CMDLINE_PAGE_CommandWindowStateCombo,
  220. IDC_CommandWindowStateCombo, IDH_TASK_PROPS_CMDLINE_PAGE_CommandWindowStateCombo,
  221. IDC_BrowseForCommand, IDH_TASK_PROPS_CMDLINE_PAGE_BrowseForCommand,
  222. IDC_BrowseForArguments, IDH_TASK_PROPS_CMDLINE_PAGE_BrowseForArguments,
  223. IDC_BrowseForWorkingDir, IDH_TASK_PROPS_CMDLINE_PAGE_BrowseForWorkingDir,
  224. 0, 0
  225. };
  226. const DWORD g_aHelpIDs_IDD_TASK_PROPS_NAME_PAGE[]=
  227. {
  228. IDC_TaskNameLabel, IDH_TASK_PROPS_NAME_PAGE_TaskName,
  229. IDC_TaskName, IDH_TASK_PROPS_NAME_PAGE_TaskName,
  230. IDC_TaskDescription, IDH_TASK_PROPS_NAME_PAGE_TaskDescription,
  231. 0, 0
  232. };
  233. const DWORD g_aHelpIDs_IDD_TASK_PROPS_SYMBOL_PAGE[]=
  234. {
  235. IDC_DESCRIPTION, IDH_TASK_PROPS_SYMBOL_PAGE_DESCRIPTION,
  236. IDC_DESCRIPTION2, IDH_TASK_PROPS_SYMBOL_PAGE_DESCRIPTION2,
  237. IDC_GLYPH_LIST, IDH_TASK_PROPS_SYMBOL_PAGE_GLYPH_LIST,
  238. 0, 0
  239. };
  240. const DWORD g_aHelpIDs_IDD_TASKPAD_ADVANCED[]=
  241. {
  242. IDC_DontUseForSimilarNodes, IDH_TASKPAD_ADVANCED_DontUseForSimilarNodes,
  243. IDC_UseForSimilarNodes, IDH_TASKPAD_ADVANCED_UseForSimilarNodes,
  244. IDC_SetDefaultForNodetype, IDH_TASKPAD_ADVANCED_SetDefaultForNodetype,
  245. 0, 0
  246. };
  247. const DWORD g_aHelpIDs_IDD_TASKPAD_GENERAL[]=
  248. {
  249. IDC_TASKPAD_TITLE, IDH_TASKPAD_GENERAL_TASKPAD_TITLE,
  250. IDC_TASKPAD_DESCRIPTION, IDH_TASKPAD_GENERAL_TASKPAD_DESCRIPTION,
  251. IDC_Style_VerticalList, IDH_TASKPAD_GENERAL_Style_VerticalList,
  252. IDC_Style_HorizontalList, IDH_TASKPAD_GENERAL_Style_HorizontalList,
  253. IDC_Style_TasksOnly, IDH_TASKPAD_GENERAL_Style_TasksOnly,
  254. IDC_Style_TextDesc, IDH_TASKPAD_GENERAL_Style_TextDesc,
  255. IDC_Style_TooltipDesc, IDH_TASKPAD_GENERAL_Style_TooltipDesc,
  256. IDC_Style_SizeCombo, IDH_TASKPAD_GENERAL_Style_SizeCombo,
  257. IDC_Options, IDH_TASKPAD_GENERAL_Options,
  258. IDC_STYLE_DESCRIPTION, IDH_TASKPAD_GENERAL_STYLE_DESCRIPTION,
  259. IDC_TaskpadPreview, IDH_TASKPAD_GENERAL_TaskpadPreview,
  260. IDC_Style_HideNormalTab, IDH_Style_HideNormalTab,
  261. 0, 0
  262. };
  263. const DWORD g_aHelpIDs_IDD_TASKS[]=
  264. {
  265. IDC_LIST_TASKS, IDH_TASKS_LIST_TASKS,
  266. IDC_NEW_TASK_BT, IDH_TASKS_NEW_TASK_BT,
  267. IDC_REMOVE_TASK, IDH_TASKS_REMOVE_TASK,
  268. IDC_MODIFY, IDH_TASKS_MODIFY,
  269. IDC_MOVE_UP, IDH_TASKS_MOVE_UP,
  270. IDC_MOVE_DOWN, IDH_TASKS_MOVE_DOWN,
  271. 0, 0
  272. };
  273. // Handle context sensitive dialog help for the nodemgr subsystem
  274. void HelpWmHelp(LPHELPINFO pHelpInfo, const DWORD* pHelpIDs);
  275. void HelpContextMenuHelp(HWND hWnd, ULONG_PTR p);
  276. #define CONTEXT_HELP_HANDLER() \
  277. MESSAGE_HANDLER (WM_HELP, OnWmHelp) \
  278. MESSAGE_HANDLER(WM_CONTEXTMENU, OnWmContextMenu) \
  279. #define IMPLEMENT_CONTEXT_HELP(g_helpIds) \
  280. \
  281. LRESULT OnWmHelp( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled ) \
  282. { \
  283. HelpWmHelp(reinterpret_cast<LPHELPINFO>(lParam), g_helpIds); \
  284. return true; \
  285. } \
  286. \
  287. LRESULT OnWmContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled ) \
  288. { \
  289. HelpContextMenuHelp((HWND)wParam, \
  290. (ULONG_PTR)(LPVOID) g_helpIds); \
  291. return TRUE; \
  292. }
  293. #endif // _HELPAR_H_