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.

138 lines
5.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: HelpArr.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _HELPARR_H_
  11. #define _HELPARR_H_
  12. #define IDH_DISABLEHELP ((DWORD)-1)
  13. #define IDH_ADDSNAPIN_LV_SNAP_INS 2001
  14. #define IDH_PROPPAGE_CONSOLE_CHANGE_ICON 2002
  15. #define IDH_PROPPAGE_CONSOLE_CONSOLE_ICON 2003
  16. #define IDH_PROPPAGE_CONSOLE_CONSOLE_MODE 2004
  17. #define IDH_PROPPAGE_CONSOLE_CONSOLE_MODE_DESCRIPTION 2005
  18. #define IDH_PROPPAGE_CONSOLE_CUSTOM_TITLE 2006
  19. #define IDH_PROPPAGE_CONSOLE_DONTSAVECHANGES 2007
  20. #define IDH_URL_INPUT_URL_EDIT 2008
  21. #define IDH_ADDFAVORITE_ADDFAVFOLDER 2009
  22. #define IDH_ADDFAVORITE_FAVNAME 2010
  23. #define IDH_ADDFAVORITE_FAVTREE 2011
  24. #define IDH_FAVORGANIZE_ADDFAVFOLDER 2012
  25. #define IDH_FAVORGANIZE_FAVDELETE 2013
  26. #define IDH_FAVORGANIZE_FAVINFO 2014
  27. #define IDH_FAVORGANIZE_FAVMOVETO 2015
  28. #define IDH_FAVORGANIZE_FAVNAME 2016
  29. #define IDH_FAVORGANIZE_FAVRENAME 2017
  30. #define IDH_FAVORGANIZE_FAVTREE 2018
  31. #define IDH_FAVSELECTFOLDER_FAVTREE 2019
  32. #define IDH_LIST_SAVE_SEL 2020
  33. #define IDH_NEWFAVFOLDER_FAVFOLDER 2021
  34. #define IDH_PROPPAGE_CONSOLE_AllowViewCustomization 2022
  35. #define IDH_DISKCLEANUP_DESCRIPTION 1032
  36. #define IDH_DELETE_TEMP_FILES 1031
  37. const DWORD g_aHelpIDs_IDD_URL_INPUT[]=
  38. {
  39. IDC_URL_EDIT, IDH_URL_INPUT_URL_EDIT,
  40. 0, 0
  41. };
  42. const DWORD g_aHelpIDs_IDD_ADDSNAPIN[]=
  43. {
  44. IDC_LV_SNAP_INS, IDH_ADDSNAPIN_LV_SNAP_INS,
  45. 0, 0
  46. };
  47. const DWORD g_aHelpIDs_IDD_PROPPAGE_CONSOLE[]=
  48. {
  49. IDC_CONSOLE_MODE, IDH_PROPPAGE_CONSOLE_CONSOLE_MODE,
  50. IDC_CONSOLE_MODE_DESCRIPTION, IDH_PROPPAGE_CONSOLE_CONSOLE_MODE_DESCRIPTION,
  51. IDC_DONTSAVECHANGES, IDH_PROPPAGE_CONSOLE_DONTSAVECHANGES,
  52. IDC_CHANGE_ICON, IDH_PROPPAGE_CONSOLE_CHANGE_ICON,
  53. IDC_CUSTOM_TITLE, IDH_PROPPAGE_CONSOLE_CUSTOM_TITLE,
  54. IDC_CONSOLE_ICON, IDH_PROPPAGE_CONSOLE_CONSOLE_ICON,
  55. IDC_AllowViewCustomization, IDH_PROPPAGE_CONSOLE_AllowViewCustomization,
  56. 0, 0
  57. };
  58. const DWORD g_aHelpIDs_IDD_PROPPAGE_DISK_CLEANUP[]=
  59. {
  60. IDC_DISKCLEANUP_DESCRIPTION, IDH_DISKCLEANUP_DESCRIPTION,
  61. IDC_DELETE_TEMP_FILES, IDH_DELETE_TEMP_FILES,
  62. IDC_DISKCLEANUP_OCCUPIED, IDH_DISKCLEANUP_DESCRIPTION,
  63. IDC_DISKCLEANUP_TO_DELETE, IDH_DISKCLEANUP_DESCRIPTION,
  64. 0, 0
  65. };
  66. const DWORD g_aHelpIDs_IDD_ADDFAVORITE[]=
  67. {
  68. IDC_FAVNAME, IDH_ADDFAVORITE_FAVNAME,
  69. IDC_FAVTREE, IDH_ADDFAVORITE_FAVTREE,
  70. IDC_ADDFAVFOLDER, IDH_ADDFAVORITE_ADDFAVFOLDER,
  71. 0, 0
  72. };
  73. const DWORD g_aHelpIDs_IDD_FAVORGANIZE[]=
  74. {
  75. IDC_ADDFAVFOLDER, IDH_FAVORGANIZE_ADDFAVFOLDER,
  76. IDC_FAVRENAME, IDH_FAVORGANIZE_FAVRENAME,
  77. IDC_FAVMOVETO, IDH_FAVORGANIZE_FAVMOVETO,
  78. IDC_FAVDELETE, IDH_FAVORGANIZE_FAVDELETE,
  79. IDC_FAVNAME, IDH_FAVORGANIZE_FAVNAME,
  80. IDC_FAVINFO, IDH_FAVORGANIZE_FAVINFO,
  81. IDC_FAVTREE, IDH_FAVORGANIZE_FAVTREE,
  82. 0, 0
  83. };
  84. const DWORD g_aHelpIDs_IDD_FAVSELECTFOLDER[]=
  85. {
  86. IDC_FAVTREE, IDH_FAVSELECTFOLDER_FAVTREE,
  87. 0, 0
  88. };
  89. const DWORD g_aHelpIDs_IDD_LIST_SAVE[]=
  90. {
  91. IDC_SEL, IDH_LIST_SAVE_SEL,
  92. 0, 0
  93. };
  94. const DWORD g_aHelpIDs_IDD_NEWFAVFOLDER[]=
  95. {
  96. IDC_FAVFOLDER, IDH_NEWFAVFOLDER_FAVFOLDER,
  97. 0, 0
  98. };
  99. // Handle context sensitive dialog help for the conui subsystem
  100. void HelpWmHelp(LPHELPINFO pHelpInfo, const DWORD* pHelpIDs);
  101. void HelpContextMenuHelp(HWND hWnd, ULONG_PTR p);
  102. #define ON_MMC_CONTEXT_HELP() \
  103. ON_MESSAGE(WM_HELP, OnWmHelp) \
  104. ON_MESSAGE(WM_CONTEXTMENU, OnWmContextMenu) \
  105. #define IMPLEMENT_CONTEXT_HELP(g_helpIds) \
  106. \
  107. LRESULT OnWmHelp(WPARAM wParam, LPARAM lParam) \
  108. { \
  109. HelpWmHelp(reinterpret_cast<LPHELPINFO>(lParam), g_helpIds); \
  110. return true; \
  111. } \
  112. \
  113. LRESULT OnWmContextMenu(WPARAM wParam, LPARAM lParam) \
  114. { \
  115. HelpContextMenuHelp((HWND)wParam, \
  116. (ULONG_PTR)(LPVOID) g_helpIds); \
  117. return TRUE; \
  118. }
  119. #endif // _HELPAR_H_