#include <CFolderOptions.h>
|
| CFolderOptions () |
|
| ~CFolderOptions () |
|
STDMETHOD() | AddPages (LPFNSVADDPROPSHEETPAGE pfnAddPage, LPARAM lParam) override |
|
STDMETHOD() | ReplacePage (EXPPS uPageID, LPFNSVADDPROPSHEETPAGE pfnReplaceWith, LPARAM lParam) override |
|
STDMETHOD() | Initialize (PCIDLIST_ABSOLUTE pidlFolder, IDataObject *pdtobj, HKEY hkeyProgID) override |
|
STDMETHOD() | SetSite (IUnknown *pUnkSite) override |
|
STDMETHOD() | GetSite (REFIID riid, void **ppvSite) override |
|
bool | CanSetDefFolderSettings () |
|
HRESULT | ApplyDefFolderSettings (bool ResetToDefault) |
|
| ~CComObjectRootEx () |
|
ULONG | InternalAddRef () |
|
ULONG | InternalRelease () |
|
void | Lock () |
|
void | Unlock () |
|
HRESULT | _AtlInitialConstruct () |
|
| CComObjectRootBase () |
|
| ~CComObjectRootBase () |
|
void | SetVoid (void *) |
|
HRESULT | _AtlFinalConstruct () |
|
HRESULT | FinalConstruct () |
|
void | InternalFinalConstructAddRef () |
|
void | InternalFinalConstructRelease () |
|
void | FinalRelease () |
|
HRESULT | AddPages ([in] LPFNSVADDPROPSHEETPAGE pfnAddPage, [in] LPARAM lParam) |
|
HRESULT | ReplacePage ([in] EXPPS uPageID, [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith, [in] LPARAM lParam) |
|
HRESULT | QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject) |
|
ULONG | AddRef () |
|
ULONG | Release () |
|
HRESULT | Initialize ([in] PCIDLIST_ABSOLUTE pidlFolder, [in] IDataObject *pdtobj, [in] HKEY hkeyProgID) |
|
HRESULT | SetSite ([in] IUnknown *pUnkSite) |
|
HRESULT | GetSite ([in] REFIID riid, [out, iid_is(riid)] PVOID *ppvSite) |
|
Definition at line 24 of file CFolderOptions.h.
◆ DEFFOLDERSETTINGACTION
Enumerator |
---|
DFSA_QUERY | |
DFSA_RESET | |
DFSA_APPLY | |
Definition at line 42 of file CFolderOptions.h.
◆ CFolderOptions()
CFolderOptions::CFolderOptions |
( |
| ) |
|
◆ ~CFolderOptions()
CFolderOptions::~CFolderOptions |
( |
| ) |
|
◆ AddPages()
Implements IShellPropSheetExt.
Definition at line 44 of file CFolderOptions.cpp.
45{
48
51 {
52 ERR(
"Failed to create property sheet page FolderOptionsGeneral\n");
54 }
55 if (!pfnAddPage(hPage,
lParam))
57
60 {
61 ERR(
"Failed to create property sheet page FolderOptionsView\n");
63 }
64 if (!pfnAddPage(hPage,
lParam))
66
69 {
70 ERR(
"Failed to create property sheet page FolderOptionsFileTypes\n");
72 }
73 if (!pfnAddPage(hPage,
lParam))
75
77}
INT_PTR CALLBACK FolderOptionsViewDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR CALLBACK FolderOptionsFileTypesDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR CALLBACK FolderOptionsGeneralDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
HPROPSHEETPAGE SH_CreatePropertySheetPage(LPCSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle)
struct _PSP * HPROPSHEETPAGE
#define IDD_FOLDER_OPTIONS_FILETYPES
#define IDD_FOLDER_OPTIONS_GENERAL
#define IDD_FOLDER_OPTIONS_VIEW
◆ ApplyDefFolderSettings()
HRESULT CFolderOptions::ApplyDefFolderSettings |
( |
bool |
ResetToDefault | ) |
|
|
inline |
Definition at line 64 of file CFolderOptions.h.
65 {
67 }
HRESULT HandleDefFolderSettings(int Action)
◆ CanSetDefFolderSettings()
bool CFolderOptions::CanSetDefFolderSettings |
( |
| ) |
|
|
inline |
◆ GetSite()
◆ HandleDefFolderSettings()
HRESULT CFolderOptions::HandleDefFolderSettings |
( |
int |
Action | ) |
|
|
protected |
Definition at line 112 of file CFolderOptions.cpp.
113{
117 {
119 {
121 }
123 {
124
126 }
127 else
128 {
129
130 }
132 }
133
135 {
136 IGlobalFolderSettings *pgfs;
138 IID_IGlobalFolderSettings, (void **)&pgfs);
140 {
141 hr = pgfs->Set(
NULL, 0, 0);
143 }
144 }
145
147}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI IUnknown_QueryService(IUnknown *, REFGUID, REFIID, LPVOID *)
HRESULT WINAPI IUnknown_Exec(IUnknown *lpUnknown, REFGUID pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
HRESULT SetAsDefFolderSettings()
#define SID_SShellBrowser
#define DVCMDID_RESET_DEFAULTFOLDER_SETTINGS
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
#define IID_PPV_ARG(Itype, ppType)
Referenced by ApplyDefFolderSettings(), and CanSetDefFolderSettings().
◆ Initialize()
◆ ReplacePage()
◆ SetSite()
◆ m_pSite
CComPtr<IUnknown> CFolderOptions::m_pSite |
|
private |
The documentation for this class was generated from the following files: