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.

79 lines
3.4 KiB

  1. /*****************************************************************************\
  2. FILE: appSize.h
  3. DESCRIPTION:
  4. This is the Autmation Object to theme scheme object.
  5. BryanSt 4/3/2000 (Bryan Starbuck)
  6. Copyright (C) Microsoft Corp 2000-2000. All rights reserved.
  7. \*****************************************************************************/
  8. #ifndef _FILE_H_APPSIZE
  9. #define _FILE_H_APPSIZE
  10. #include <cowsite.h>
  11. #include <atlbase.h>
  12. #include <theme.h>
  13. HRESULT CAppearanceSize_CreateInstance(IN HKEY hkeyStyle, IN HKEY hkeySize, OUT IThemeSize ** ppThemeSize);
  14. class CAppearanceSize : public IThemeSize
  15. , public IPropertyBag
  16. {
  17. public:
  18. //////////////////////////////////////////////////////
  19. // Public Interfaces
  20. //////////////////////////////////////////////////////
  21. // *** IUnknown ***
  22. virtual STDMETHODIMP QueryInterface(REFIID riid, LPVOID * ppvObj);
  23. virtual STDMETHODIMP_(ULONG) AddRef(void);
  24. virtual STDMETHODIMP_(ULONG) Release(void);
  25. // *** IThemeSize ***
  26. virtual STDMETHODIMP get_DisplayName(OUT BSTR * pbstrDisplayName);
  27. virtual STDMETHODIMP put_DisplayName(IN BSTR bstrDisplayName);
  28. virtual STDMETHODIMP get_Name(OUT BSTR * pbstrName);
  29. virtual STDMETHODIMP put_Name(IN BSTR bstrName);
  30. virtual STDMETHODIMP get_SystemMetricColor(IN int nSysColorIndex, OUT COLORREF * pColorRef);
  31. virtual STDMETHODIMP put_SystemMetricColor(IN int nSysColorIndex, IN COLORREF ColorRef);
  32. virtual STDMETHODIMP get_SystemMetricSize(IN enumSystemMetricSize nSystemMetricIndex, OUT int * pnSize);
  33. virtual STDMETHODIMP put_SystemMetricSize(IN enumSystemMetricSize nSystemMetricIndex, IN int nSize);
  34. virtual STDMETHODIMP get_WebviewCSS(OUT BSTR * pbstrPath);
  35. virtual STDMETHODIMP get_ContrastLevel(OUT enumThemeContrastLevels * pContrastLevel);
  36. virtual STDMETHODIMP put_ContrastLevel(IN enumThemeContrastLevels ContrastLevel);
  37. virtual STDMETHODIMP GetSystemMetricFont(IN enumSystemMetricFont nSPIFontIndex, IN LOGFONTW * pParamW);
  38. virtual STDMETHODIMP PutSystemMetricFont(IN enumSystemMetricFont nSPIFontIndex, IN LOGFONTW * pParamW);
  39. // *** IPropertyBag ***
  40. virtual STDMETHODIMP Read(IN LPCOLESTR pszPropName, IN VARIANT * pVar, IN IErrorLog *pErrorLog);
  41. virtual STDMETHODIMP Write(IN LPCOLESTR pszPropName, IN VARIANT *pVar);
  42. // *** IDispatch ***
  43. virtual STDMETHODIMP GetTypeInfoCount(UINT *pctinfo) { return E_ACCESSDENIED; }
  44. virtual STDMETHODIMP GetTypeInfo(UINT itinfo,LCID lcid,ITypeInfo **pptinfo) { return E_ACCESSDENIED; }
  45. virtual STDMETHODIMP GetIDsOfNames(REFIID riid,OLECHAR **rgszNames,UINT cNames, LCID lcid, DISPID * rgdispid) { return E_ACCESSDENIED; }
  46. virtual STDMETHODIMP Invoke(DISPID dispidMember,REFIID riid,LCID lcid,WORD wFlags, DISPPARAMS * pdispparams, VARIANT * pvarResult, EXCEPINFO * pexcepinfo,UINT * puArgErr) { return E_ACCESSDENIED; }
  47. private:
  48. CAppearanceSize(IN HKEY hkeyStyle, IN HKEY hkeySize);
  49. virtual ~CAppearanceSize(void);
  50. // Private Member Variables
  51. long m_cRef;
  52. HKEY m_hkeyStyle;
  53. HKEY m_hkeySize;
  54. // Private Methods
  55. // Friend Functions
  56. friend HRESULT CAppearanceSize_CreateInstance(IN HKEY hkeyStyle, IN HKEY hkeySize, OUT IThemeSize ** ppThemeSize);
  57. };
  58. #endif // _FILE_H_APPSIZE