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.

191 lines
12 KiB

  1. /**************************************************************************\
  2. FILE: ThemeID.h
  3. DATE: BryanSt (3/31/2000)
  4. DESCRIPTION:
  5. Theme API (Object Model).
  6. Copyright (c) Microsoft Corporation. All rights reserved.
  7. \**************************************************************************/
  8. #ifndef _THEMEIDLID_H_
  9. // define the ...
  10. #define DISPID_NXOBJ_MIN 0x00000000
  11. #define DISPID_NXOBJ_MAX 0x0000FFFF
  12. #define DISPID_NXOBJ_BASE DISPID_NXOBJ_MIN
  13. //----------------------------------------------------------------------------
  14. //
  15. // Semi-standard x-object properties.
  16. //
  17. // These are events that are fired for all sites
  18. //----------------------------------------------------------------------------
  19. // IThemeManager Properties
  20. #define DISPIDTHTM_CURRENTTHEME (DISPID_NXOBJ_BASE + 100)
  21. #define DISPIDTHTM_LENGTH (DISPID_NXOBJ_BASE + 101)
  22. #define DISPIDTHTM_ITEM (DISPID_NXOBJ_BASE + 102)
  23. #define DISPIDTHTM_SELECTEDSCHEME (DISPID_NXOBJ_BASE + 103)
  24. #define DISPIDTHTM_WEBVIEWCSS (DISPID_NXOBJ_BASE + 104)
  25. #define DISPIDTHTM_SCHEMELENGTH (DISPID_NXOBJ_BASE + 105)
  26. #define DISPIDTHTM_SCHEMEITEM (DISPID_NXOBJ_BASE + 106)
  27. // IThemeManager Methods
  28. #define DISPIDTHTM_GETSELSCHPROPERTY (DISPID_NXOBJ_BASE + 150)
  29. #define DISPIDTHTM_GETSPECIALTHEME (DISPID_NXOBJ_BASE + 151)
  30. #define DISPIDTHTM_SETSPECIALTHEME (DISPID_NXOBJ_BASE + 152)
  31. #define DISPIDTHTM_GETSPECIALSCHEME (DISPID_NXOBJ_BASE + 153)
  32. #define DISPIDTHTM_SETSPECIALSCHEME (DISPID_NXOBJ_BASE + 154)
  33. #define DISPIDTHTM_APPLYNOW (DISPID_NXOBJ_BASE + 155)
  34. // ITheme Properties
  35. #define DISPIDTHTH_DISPLAYNAME (DISPID_NXOBJ_BASE + 200)
  36. #define DISPIDTHTH_BKGD (DISPID_NXOBJ_BASE + 201)
  37. #define DISPIDTHTH_BKGDTILE (DISPID_NXOBJ_BASE + 202)
  38. #define DISPIDTHTH_SCRNSAVER (DISPID_NXOBJ_BASE + 203)
  39. #define DISPIDTHTH_LENGTH (DISPID_NXOBJ_BASE + 204)
  40. #define DISPIDTHTH_ITEM (DISPID_NXOBJ_BASE + 205)
  41. #define DISPIDTHTH_SELECTEDSCHEME (DISPID_NXOBJ_BASE + 206)
  42. // ITheme Methods
  43. #define DISPIDTHTH_GETPATH (DISPID_NXOBJ_BASE + 250)
  44. #define DISPIDTHTH_SETPATH (DISPID_NXOBJ_BASE + 251)
  45. #define DISPIDTHTH_VS (DISPID_NXOBJ_BASE + 252)
  46. #define DISPIDTHTH_VSCOLOR (DISPID_NXOBJ_BASE + 253)
  47. #define DISPIDTHTH_VSSIZE (DISPID_NXOBJ_BASE + 254)
  48. #define DISPIDTHTH_GETCURSOR (DISPID_NXOBJ_BASE + 255)
  49. #define DISPIDTHTH_SETCURSOR (DISPID_NXOBJ_BASE + 256)
  50. #define DISPIDTHTH_GETSOUND (DISPID_NXOBJ_BASE + 257)
  51. #define DISPIDTHTH_SETSOUND (DISPID_NXOBJ_BASE + 258)
  52. #define DISPIDTHTH_GETICON (DISPID_NXOBJ_BASE + 259)
  53. #define DISPIDTHTH_SETICON (DISPID_NXOBJ_BASE + 260)
  54. #define DISPIDTHTH_GETICONBYKEY (DISPID_NXOBJ_BASE + 261)
  55. #define DISPIDTHTH_SETICONBYKEY (DISPID_NXOBJ_BASE + 262)
  56. #define DISPIDTHTH_GETWEBVW (DISPID_NXOBJ_BASE + 263)
  57. #define DISPIDTHTH_SETWEBVW (DISPID_NXOBJ_BASE + 264)
  58. // IThemeScheme Properties
  59. #define DISPIDTHTS_SCHDISPNAME (DISPID_NXOBJ_BASE + 301)
  60. #define DISPIDTHTS_SCHEMEPATH (DISPID_NXOBJ_BASE + 302)
  61. #define DISPIDTHTS_LENGTH (DISPID_NXOBJ_BASE + 303)
  62. #define DISPIDTHTS_ITEM (DISPID_NXOBJ_BASE + 304)
  63. #define DISPIDTHTS_SELECTEDSTYLE (DISPID_NXOBJ_BASE + 305)
  64. // IThemeScheme Methods
  65. #define DISPIDTHTS_ADDSTYLE (DISPID_NXOBJ_BASE + 350)
  66. // IThemeStyle Properties
  67. #define DISPIDTHSY_DISPNAME (DISPID_NXOBJ_BASE + 400)
  68. #define DISPIDTHSY_NAME (DISPID_NXOBJ_BASE + 401)
  69. #define DISPIDTHSY_LENGTH (DISPID_NXOBJ_BASE + 402)
  70. #define DISPIDTHSY_ITEM (DISPID_NXOBJ_BASE + 403)
  71. #define DISPIDTHSY_SELECTEDSIZE (DISPID_NXOBJ_BASE + 404)
  72. // IThemeStyle Methods
  73. #define DISPIDTHSY_ADDSIZE (DISPID_NXOBJ_BASE + 450)
  74. // IThemeSize Properties
  75. #define DISPIDTHSZ_DISPNAME (DISPID_NXOBJ_BASE + 500)
  76. #define DISPIDTHSZ_NAME (DISPID_NXOBJ_BASE + 501)
  77. #define DISPIDTHSZ_SYSMETCOLOR (DISPID_NXOBJ_BASE + 502)
  78. #define DISPIDTHSZ_SYSMETSIZE (DISPID_NXOBJ_BASE + 503)
  79. #define DISPIDTHSZ_WEBVIEWCSS (DISPID_NXOBJ_BASE + 504)
  80. #define DISPIDTHSZ_CONTRASTLVL (DISPID_NXOBJ_BASE + 505)
  81. // IThemeSize Methods
  82. #define DISPIDTHSZ_GETSYSMETFONT (DISPID_NXOBJ_BASE + 550)
  83. #define DISPIDTHSZ_PUTSYSMETFONT (DISPID_NXOBJ_BASE + 551)
  84. // IThemePreview Methods
  85. #define DISPIDTHPV_UPDATE (DISPID_NXOBJ_BASE + 650)
  86. #define DISPIDTHPV_CREATEPREVIEW (DISPID_NXOBJ_BASE + 651)
  87. #define SZ_HELPTHTM_GETCURRENTTHEME helpstring("Get the current theme")
  88. #define SZ_HELPTHTM_PUTCURRENTTHEME helpstring("Set the current theme")
  89. #define SZ_HELPTHTM_GETLENGTH helpstring("Get the number of existing themes")
  90. #define SZ_HELPTHTM_GETITEM helpstring("Get a theme by its index")
  91. #define SZ_HELPTHTM_INSTALLTHEME helpstring("Install the theme specified by the path")
  92. #define SZ_HELPTHTM_GETSELECTEDSCHEME helpstring("Get the currently selected scheme")
  93. #define SZ_HELPTHTM_PUTSELECTEDSCHEME helpstring("Set the currently selected scheme")
  94. #define SZ_HELPTHTM_WEBVIEWCSS helpstring("Get the webview CSS file.")
  95. #define SZ_HELPTHTM_GETSCHEMELENGTH helpstring("Get the number of existing schemes")
  96. #define SZ_HELPTHTM_GETSCHEMEITEM helpstring("Get a scheme by its index")
  97. #define SZ_HELPTHTM_GETSELSCHPROPERTY helpstring("Get a property of a special marked scheme. Like a filename, displayname, or canonical name.")
  98. #define SZ_HELPTHTM_GETSPECIALTHEME helpstring("Get a special theme by name")
  99. #define SZ_HELPTHTM_SETSPECIALTHEME helpstring("Set a special theme by name")
  100. #define SZ_HELPTHTM_GETSPECIALSCHEME helpstring("Get a special scheme by name")
  101. #define SZ_HELPTHTM_SETSPECIALSCHEME helpstring("Set a special scheme by name")
  102. #define SZ_HELPTHTM_APPLYNOW helpstring("Apply the settings now")
  103. #define SZ_HELPTHTH_GETDISPLAYNAME helpstring("Get the display name for the theme")
  104. #define SZ_HELPTHTH_PUTDISPLAYNAME helpstring("Set the display name for the theme")
  105. #define SZ_HELPTHTH_GETPATH helpstring("Get the path to the theme file")
  106. #define SZ_HELPTHTH_PUTPATH helpstring("Set the path to the theme file")
  107. #define SZ_HELPTHTH_GETVS helpstring("Get the path to the Visual Style file")
  108. #define SZ_HELPTHTH_PUTVS helpstring("Set the path to the Visual Style file")
  109. #define SZ_HELPTHTH_GETVSCOLOR helpstring("Get the path to the Visual Style color")
  110. #define SZ_HELPTHTH_PUTVSCOLOR helpstring("Set the path to the Visual Style color")
  111. #define SZ_HELPTHTH_GETVSSIZE helpstring("Get the path to the Visual Style size")
  112. #define SZ_HELPTHTH_PUTVSSIZE helpstring("Set the path to the Visual Style size")
  113. #define SZ_HELPTHTH_GETBKGD helpstring("Get the background picture path")
  114. #define SZ_HELPTHTH_PUTBKGD helpstring("Set the background picture path")
  115. #define SZ_HELPTHTH_GETBKGDTILE helpstring("Get the background tile method")
  116. #define SZ_HELPTHTH_PUTBKGDTILE helpstring("Set the background tile method")
  117. #define SZ_HELPTHTH_GETCURSOR helpstring("Get a cursor's filename")
  118. #define SZ_HELPTHTH_PUTCURSOR helpstring("Set a cursor's filename")
  119. #define SZ_HELPTHTH_GETSOUND helpstring("Get a sound's filename")
  120. #define SZ_HELPTHTH_PUTSOUND helpstring("Set a sound's filename")
  121. #define SZ_HELPTHTH_GETICON helpstring("Get an icon's filename")
  122. #define SZ_HELPTHTH_PUTICON helpstring("Set an icon's filename")
  123. #define SZ_HELPTHTH_GETICONBYKEY helpstring("Get an icon's filename by specifying the registry key")
  124. #define SZ_HELPTHTH_PUTICONBYKEY helpstring("Set an icon's filename by specifying the registry key")
  125. #define SZ_HELPTHTH_GETSCRNSAVER helpstring("Get the ScreenSaver filename")
  126. #define SZ_HELPTHTH_PUTSCRNSAVER helpstring("Get the ScreenSaver filename")
  127. #define SZ_HELPTHTH_GETWEBVW helpstring("Get a webview's filename")
  128. #define SZ_HELPTHTH_PUTWEBVW helpstring("Set a webview's filename")
  129. #define SZ_HELPTHTH_GETLENGTH helpstring("Get the number of existing schemes")
  130. #define SZ_HELPTHTH_GETITEM helpstring("Get a scheme by its index")
  131. #define SZ_HELPTHTH_GETSELECTEDSCHEME helpstring("Get the currently selected scheme")
  132. #define SZ_HELPTHTH_PUTSELECTEDSCHEME helpstring("Set the currently selected scheme")
  133. #define SZ_HELPTHTS_GETSCHDISPNAME helpstring("Get the display name for the scheme")
  134. #define SZ_HELPTHTS_PUTSCHDISPNAME helpstring("Set the display name for the scheme")
  135. #define SZ_HELPTHTS_GETSCHEMEPATH helpstring("Get the path to the scheme file")
  136. #define SZ_HELPTHTS_PUTSCHEMEPATH helpstring("Set the path to the scheme file")
  137. #define SZ_HELPTHTS_GETLENGTH helpstring("Get the number of existing theme styles")
  138. #define SZ_HELPTHTS_GETITEM helpstring("Get a style by its index")
  139. #define SZ_HELPTHTS_GETSELECTEDSTYLE helpstring("Get the currently selected style")
  140. #define SZ_HELPTHTS_PUTSELECTEDSTYLE helpstring("Set the currently selected style")
  141. #define SZ_HELPTHTS_ADDSTYLE helpstring("Add a style")
  142. #define SZ_HELPTHSY_GETDISPNAME helpstring("Get the display name for the style")
  143. #define SZ_HELPTHSY_PUTDISPNAME helpstring("Set the display name for the style")
  144. #define SZ_HELPTHSY_GETNAME helpstring("Get the canonical name for the style")
  145. #define SZ_HELPTHSY_PUTNAME helpstring("Set the canonical name for the style")
  146. #define SZ_HELPTHSY_GETLENGTH helpstring("Get the number of existing theme sizes")
  147. #define SZ_HELPTHSY_GETITEM helpstring("Get a size by its index")
  148. #define SZ_HELPTHSY_GETSELECTEDSIZE helpstring("Get the currently selected size")
  149. #define SZ_HELPTHSY_PUTSELECTEDSIZE helpstring("Set the currently selected size")
  150. #define SZ_HELPTHSY_ADDSIZE helpstring("Add a size")
  151. #define SZ_HELPTHSZ_GETDISPNAME helpstring("Get the display name for the size")
  152. #define SZ_HELPTHSZ_PUTDISPNAME helpstring("Set the display name for the size")
  153. #define SZ_HELPTHSZ_GETNAME helpstring("Get the canonical name for the size")
  154. #define SZ_HELPTHSZ_PUTNAME helpstring("Set the canonical name for the size")
  155. #define SZ_HELPTHSZ_GETSYSMETCOLOR helpstring("Get the specified SystemMetric color")
  156. #define SZ_HELPTHSZ_PUTSYSMETCOLOR helpstring("Set the specified SystemMetric color")
  157. #define SZ_HELPTHSZ_GETSYSMETFONT helpstring("Get the specified SystemMetric font")
  158. #define SZ_HELPTHSZ_PUTSYSMETFONT helpstring("Set the specified SystemMetric font")
  159. #define SZ_HELPTHSZ_GETSYSMETSIZE helpstring("Get the specified SystemMetric size")
  160. #define SZ_HELPTHSZ_PUTSYSMETSIZE helpstring("Set the specified SystemMetric size")
  161. #define SZ_HELPTHSZ_WEBVIEWCSS helpstring("Get the webview CSS file.")
  162. #define SZ_HELPTHSZ_GETCONTRASTLVL helpstring("Get the scheme's contrast level.")
  163. #define SZ_HELPTHSZ_PUTCONTRASTLVL helpstring("Set the scheme's contrast level.")
  164. #define SZ_HELPTHPV_UPDATE helpstring("Update the preview based on changes")
  165. #define SZ_HELPTHPV_CREATEPREVIEW helpstring("Create the preview window")
  166. #define _THEMEIDLID_H_
  167. #endif // _THEMEIDLID_H_