ReactOS  0.4.15-dev-316-g938df97
CFolderOptions Class Reference

#include <CFolderOptions.h>

Inheritance diagram for CFolderOptions:
Collaboration diagram for CFolderOptions:

Public Member Functions

 CFolderOptions ()
 
 ~CFolderOptions ()
 
virtual HRESULT STDMETHODCALLTYPE AddPages (LPFNSVADDPROPSHEETPAGE pfnAddPage, LPARAM lParam)
 
virtual HRESULT STDMETHODCALLTYPE ReplacePage (EXPPS uPageID, LPFNSVADDPROPSHEETPAGE pfnReplaceWith, LPARAM lParam)
 
virtual HRESULT STDMETHODCALLTYPE Initialize (PCIDLIST_ABSOLUTE pidlFolder, IDataObject *pdtobj, HKEY hkeyProgID)
 
virtual HRESULT STDMETHODCALLTYPE SetSite (IUnknown *pUnkSite)
 
virtual HRESULT STDMETHODCALLTYPE GetSite (REFIID riid, void **ppvSite)
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 
- Public Member Functions inherited from IObjectWithSite
HRESULT GetSite ([in] REFIID riid, [out, iid_is(riid)] PVOID *ppvSite)
 

Private Attributes

CComPtr< IUnknownm_pSite
 

Additional Inherited Members

- Public Types inherited from IShellPropSheetExt
enum  tagSHELLPROPSHEETEXTPAGEID { EXPPS_FILETYPES = 0x1 }
 
typedef UINT EXPPS
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Types inherited from IShellExtInit
typedef IShellExtInitLPSHELLEXTINIT
 
- Public Types inherited from IObjectWithSite
typedef IObjectWithSiteLPOBJECTWITHSITE
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 

Detailed Description

Definition at line 24 of file CFolderOptions.h.

Constructor & Destructor Documentation

◆ CFolderOptions()

CFolderOptions::CFolderOptions ( )

Definition at line 26 of file CFolderOptions.cpp.

27  :m_pSite(NULL)
28 {
29 }
CComPtr< IUnknown > m_pSite
smooth NULL
Definition: ftsmooth.c:416

◆ ~CFolderOptions()

CFolderOptions::~CFolderOptions ( )

Definition at line 31 of file CFolderOptions.cpp.

32 {
33 }

Member Function Documentation

◆ AddPages()

HRESULT STDMETHODCALLTYPE CFolderOptions::AddPages ( LPFNSVADDPROPSHEETPAGE  pfnAddPage,
LPARAM  lParam 
)
virtual

Implements IShellPropSheetExt.

Definition at line 43 of file CFolderOptions.cpp.

44 {
46 
47  if (hPage == NULL)
48  {
49  ERR("Failed to create property sheet page FolderOptionsGeneral\n");
50  return E_FAIL;
51  }
52  if (!pfnAddPage(hPage, lParam))
53  return E_FAIL;
54 
56  if (hPage == NULL)
57  {
58  ERR("Failed to create property sheet page FolderOptionsView\n");
59  return E_FAIL;
60  }
61  if (!pfnAddPage(hPage, lParam))
62  return E_FAIL;
63 
65  if (hPage == NULL)
66  {
67  ERR("Failed to create property sheet page FolderOptionsFileTypes\n");
68  return E_FAIL;
69  }
70  if (!pfnAddPage(hPage, lParam))
71  return E_FAIL;
72 
73  return S_OK;
74 }
#define E_FAIL
Definition: ddrawi.h:102
struct _PSP * HPROPSHEETPAGE
Definition: mstask.idl:90
smooth NULL
Definition: ftsmooth.c:416
INT_PTR CALLBACK FolderOptionsFileTypesDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: filetypes.cpp:1665
#define IDD_FOLDER_OPTIONS_GENERAL
Definition: shresdef.h:350
#define IDD_FOLDER_OPTIONS_FILETYPES
Definition: shresdef.h:352
#define ERR(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
#define IDD_FOLDER_OPTIONS_VIEW
Definition: shresdef.h:351
INT_PTR CALLBACK FolderOptionsViewDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: view.cpp:934
HPROPSHEETPAGE SH_CreatePropertySheetPage(LPCSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle)
INT_PTR CALLBACK FolderOptionsGeneralDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: general.cpp:365
LPARAM lParam
Definition: combotst.c:139

◆ GetSite()

HRESULT STDMETHODCALLTYPE CFolderOptions::GetSite ( REFIID  riid,
void **  ppvSite 
)
virtual

Definition at line 101 of file CFolderOptions.cpp.

102 {
103  return m_pSite->QueryInterface(riid, ppvSite);
104 }
REFIID riid
Definition: precomp.h:44
CComPtr< IUnknown > m_pSite

◆ Initialize()

HRESULT STDMETHODCALLTYPE CFolderOptions::Initialize ( PCIDLIST_ABSOLUTE  pidlFolder,
IDataObject pdtobj,
HKEY  hkeyProgID 
)
virtual

Implements IShellExtInit.

Definition at line 86 of file CFolderOptions.cpp.

87 {
88  return S_OK;
89 }
#define S_OK
Definition: intsafe.h:59

◆ ReplacePage()

HRESULT STDMETHODCALLTYPE CFolderOptions::ReplacePage ( EXPPS  uPageID,
LPFNSVADDPROPSHEETPAGE  pfnReplaceWith,
LPARAM  lParam 
)
virtual

Implements IShellPropSheetExt.

Definition at line 76 of file CFolderOptions.cpp.

77 {
78  TRACE("(%p) (uPageID %u, pfnReplaceWith %p lParam %p\n", this, uPageID, pfnReplaceWith, lParam);
79  return E_NOTIMPL;
80 }
#define TRACE(s)
Definition: solgame.cpp:4
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ SetSite()

HRESULT STDMETHODCALLTYPE CFolderOptions::SetSite ( IUnknown pUnkSite)
virtual

Implements IObjectWithSite.

Definition at line 95 of file CFolderOptions.cpp.

96 {
97  m_pSite = pUnkSite;
98  return S_OK;
99 }
CComPtr< IUnknown > m_pSite
#define S_OK
Definition: intsafe.h:59

Member Data Documentation

◆ m_pSite

CComPtr<IUnknown> CFolderOptions::m_pSite
private

Definition at line 32 of file CFolderOptions.h.

Referenced by GetSite(), and SetSite().


The documentation for this class was generated from the following files: