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.

80 lines
3.6 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 CImpIDispatch
  15. , public IThemeSize
  16. , public IPropertyBag
  17. {
  18. public:
  19. //////////////////////////////////////////////////////
  20. // Public Interfaces
  21. //////////////////////////////////////////////////////
  22. // *** IUnknown ***
  23. virtual STDMETHODIMP QueryInterface(REFIID riid, LPVOID * ppvObj);
  24. virtual STDMETHODIMP_(ULONG) AddRef(void);
  25. virtual STDMETHODIMP_(ULONG) Release(void);
  26. // *** IThemeSize ***
  27. virtual STDMETHODIMP get_DisplayName(OUT BSTR * pbstrDisplayName);
  28. virtual STDMETHODIMP put_DisplayName(IN BSTR bstrDisplayName);
  29. virtual STDMETHODIMP get_Name(OUT BSTR * pbstrName);
  30. virtual STDMETHODIMP put_Name(IN BSTR bstrName);
  31. virtual STDMETHODIMP get_SystemMetricColor(IN int nSysColorIndex, OUT COLORREF * pColorRef);
  32. virtual STDMETHODIMP put_SystemMetricColor(IN int nSysColorIndex, IN COLORREF ColorRef);
  33. virtual STDMETHODIMP get_SystemMetricSize(IN enumSystemMetricSize nSystemMetricIndex, OUT int * pnSize);
  34. virtual STDMETHODIMP put_SystemMetricSize(IN enumSystemMetricSize nSystemMetricIndex, IN int nSize);
  35. virtual STDMETHODIMP get_WebviewCSS(OUT BSTR * pbstrPath);
  36. virtual STDMETHODIMP get_ContrastLevel(OUT enumThemeContrastLevels * pContrastLevel);
  37. virtual STDMETHODIMP put_ContrastLevel(IN enumThemeContrastLevels ContrastLevel);
  38. virtual STDMETHODIMP GetSystemMetricFont(IN enumSystemMetricFont nSPIFontIndex, IN LOGFONTW * pParamW);
  39. virtual STDMETHODIMP PutSystemMetricFont(IN enumSystemMetricFont nSPIFontIndex, IN LOGFONTW * pParamW);
  40. // *** IPropertyBag ***
  41. virtual STDMETHODIMP Read(IN LPCOLESTR pszPropName, IN VARIANT * pVar, IN IErrorLog *pErrorLog);
  42. virtual STDMETHODIMP Write(IN LPCOLESTR pszPropName, IN VARIANT *pVar);
  43. // *** IDispatch ***
  44. virtual STDMETHODIMP GetTypeInfoCount(UINT *pctinfo) { return CImpIDispatch::GetTypeInfoCount(pctinfo); }
  45. virtual STDMETHODIMP GetTypeInfo(UINT itinfo,LCID lcid,ITypeInfo **pptinfo) { return CImpIDispatch::GetTypeInfo(itinfo, lcid, pptinfo); }
  46. virtual STDMETHODIMP GetIDsOfNames(REFIID riid,OLECHAR **rgszNames,UINT cNames, LCID lcid, DISPID * rgdispid) { return CImpIDispatch::GetIDsOfNames(riid, rgszNames, cNames, lcid, rgdispid); }
  47. virtual STDMETHODIMP Invoke(DISPID dispidMember,REFIID riid,LCID lcid,WORD wFlags, DISPPARAMS * pdispparams, VARIANT * pvarResult, EXCEPINFO * pexcepinfo,UINT * puArgErr) { return CImpIDispatch::Invoke(dispidMember, riid, lcid, wFlags, pdispparams, pvarResult, pexcepinfo, puArgErr); }
  48. private:
  49. CAppearanceSize(IN HKEY hkeyStyle, IN HKEY hkeySize);
  50. virtual ~CAppearanceSize(void);
  51. // Private Member Variables
  52. long m_cRef;
  53. HKEY m_hkeyStyle;
  54. HKEY m_hkeySize;
  55. // Private Methods
  56. // Friend Functions
  57. friend HRESULT CAppearanceSize_CreateInstance(IN HKEY hkeyStyle, IN HKEY hkeySize, OUT IThemeSize ** ppThemeSize);
  58. };
  59. #endif // _FILE_H_APPSIZE