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.
 
 
 
 
 
 

54 lines
1.8 KiB

#ifndef _DESKHTML_H_
#define _DESKHTML_H_
#include <cowsite.h>
class CDeskHtmlProp : public CObjectCLSID
, public IObjectWithSite
, public IShellExtInit
, public IBasePropPage
, public IPropertyBag
{
// *** IUnknown ***
virtual STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppvObj);
virtual STDMETHODIMP_(ULONG) AddRef(void);
virtual STDMETHODIMP_(ULONG) Release(void);
// *** IObjectWithSite ***
virtual STDMETHODIMP SetSite(IN IUnknown * punkSite);
virtual STDMETHODIMP GetSite(IN REFIID riid, OUT void ** ppvSite);
// *** IShellExtInit ***
virtual STDMETHODIMP Initialize(IN LPCITEMIDLIST pidlFolder, IN LPDATAOBJECT lpdobj, IN HKEY hkeyProgID);
// *** IShellPropSheetExt ***
virtual STDMETHODIMP AddPages(IN LPFNADDPROPSHEETPAGE lpfnAddPage, IN LPARAM lParam);
virtual STDMETHODIMP ReplacePage(IN UINT uPageID, IN LPFNADDPROPSHEETPAGE lpfnReplaceWith, IN LPARAM lParam);
// *** IPropertyBag ***
virtual STDMETHODIMP Read(IN LPCOLESTR pszPropName, IN VARIANT * pVar, IN IErrorLog *pErrorLog);
virtual STDMETHODIMP Write(IN LPCOLESTR pszPropName, IN VARIANT *pVar);
// *** IBasePropPage ***
virtual STDMETHODIMP GetAdvancedDialog(OUT IAdvancedDialog ** ppAdvDialog);
virtual STDMETHODIMP OnApply(IN PROPPAGEONAPPLY oaAction);
protected:
// Constructor / Destructor
CDeskHtmlProp();
~CDeskHtmlProp();
// Instance creator
friend HRESULT CDeskHtmlProp_CreateInstance(LPUNKNOWN punkOuter, REFIID riid, void **ppvOut);
private:
// Private member variables
UINT _cRef; // Reference count
IShellPropSheetExt * _pspseBkgdPage; // The Background Page
// Private member functions
HRESULT _InitBackgroundTab(void);
};
#endif