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.

69 lines
2.6 KiB

  1. /*****************************************************************************\
  2. FILE: appStyle.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_APPSTYLE
  9. #define _FILE_H_APPSTYLE
  10. #include <cowsite.h>
  11. #include <atlbase.h>
  12. HRESULT CAppearanceStyle_CreateInstance(IN HKEY hkeyStyle, OUT IThemeStyle ** ppThemeStyle);
  13. class CAppearanceStyle : public IThemeStyle
  14. {
  15. public:
  16. //////////////////////////////////////////////////////
  17. // Public Interfaces
  18. //////////////////////////////////////////////////////
  19. // *** IUnknown ***
  20. virtual STDMETHODIMP QueryInterface(REFIID riid, LPVOID * ppvObj);
  21. virtual STDMETHODIMP_(ULONG) AddRef(void);
  22. virtual STDMETHODIMP_(ULONG) Release(void);
  23. // *** IThemeStyle ***
  24. virtual STDMETHODIMP get_DisplayName(OUT BSTR * pbstrDisplayName);
  25. virtual STDMETHODIMP put_DisplayName(IN BSTR bstrDisplayName);
  26. virtual STDMETHODIMP get_Name(OUT BSTR * pbstrName);
  27. virtual STDMETHODIMP put_Name(IN BSTR bstrName);
  28. virtual STDMETHODIMP get_length(OUT long * pnLength);
  29. virtual STDMETHODIMP get_item(IN VARIANT varIndex, OUT IThemeSize ** ppThemeSize);
  30. virtual STDMETHODIMP get_SelectedSize(OUT IThemeSize ** ppThemeSize);
  31. virtual STDMETHODIMP put_SelectedSize(IN IThemeSize * pThemeSize);
  32. virtual STDMETHODIMP AddSize(OUT IThemeSize ** ppThemeSize);
  33. // *** IDispatch ***
  34. virtual STDMETHODIMP GetTypeInfoCount(UINT *pctinfo) { return E_ACCESSDENIED; }
  35. virtual STDMETHODIMP GetTypeInfo(UINT itinfo,LCID lcid,ITypeInfo **pptinfo) { return E_ACCESSDENIED; }
  36. virtual STDMETHODIMP GetIDsOfNames(REFIID riid,OLECHAR **rgszNames,UINT cNames, LCID lcid, DISPID * rgdispid) { return E_ACCESSDENIED; }
  37. virtual STDMETHODIMP Invoke(DISPID dispidMember,REFIID riid,LCID lcid,WORD wFlags, DISPPARAMS * pdispparams, VARIANT * pvarResult, EXCEPINFO * pexcepinfo,UINT * puArgErr) { return E_ACCESSDENIED; }
  38. private:
  39. CAppearanceStyle(IN HKEY hkeyStyle);
  40. virtual ~CAppearanceStyle(void);
  41. // Private Member Variables
  42. long m_cRef;
  43. HKEY m_hKeyStyle;
  44. // Private Member Functions
  45. HRESULT _getSizeByIndex(IN long nIndex, OUT IThemeSize ** ppThemeSize);
  46. // Friend Functions
  47. friend HRESULT CAppearanceStyle_CreateInstance(IN HKEY hkeyStyle, OUT IThemeStyle ** ppThemeStyle);
  48. };
  49. #endif // _FILE_H_APPSTYLE