ReactOS 0.4.16-dev-61-ge128cbc
CShellFolderViewCBWrapper Class Reference
Inheritance diagram for CShellFolderViewCBWrapper:
Collaboration diagram for CShellFolderViewCBWrapper:

Public Member Functions

 CShellFolderViewCBWrapper ()
 
virtual ~CShellFolderViewCBWrapper ()
 
HRESULT WINAPI Initialize (LPCSFV psvcbi)
 
STDMETHODIMP MessageSFVCB (UINT uMsg, WPARAM wParam, LPARAM lParam) override
 
STDMETHODIMP SetSite (IUnknown *pUnkSite) override
 
- 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 CObjectWithSiteBase
 CObjectWithSiteBase ()
 
virtual ~CObjectWithSiteBase ()
 
STDMETHODIMP SetSite (IUnknown *pUnkSite) override
 
STDMETHODIMP GetSite (REFIID riid, void **ppvSite) override
 
- Public Member Functions inherited from IObjectWithSite
HRESULT SetSite ([in] IUnknown *pUnkSite)
 
HRESULT GetSite ([in] REFIID riid, [out, iid_is(riid)] PVOID *ppvSite)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Protected Attributes

HWND m_hWndMain
 
PIDLIST_ABSOLUTE m_Pidl
 
CComPtr< IShellFolderm_psf
 
CComPtr< IShellViewm_psvOuter
 
LPFNVIEWCALLBACK m_Callback
 
FOLDERVIEWMODE m_FVM
 
LONG m_Events
 

Additional Inherited Members

- Public Types inherited from IObjectWithSite
typedef IObjectWithSiteLPOBJECTWITHSITE
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- 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
 
- Public Attributes inherited from CObjectWithSiteBase
IUnknownm_pUnkSite
 

Detailed Description

Definition at line 35 of file CDefViewUtil.cpp.

Constructor & Destructor Documentation

◆ CShellFolderViewCBWrapper()

CShellFolderViewCBWrapper::CShellFolderViewCBWrapper ( )
inline

Definition at line 50 of file CDefViewUtil.cpp.

PIDLIST_ABSOLUTE m_Pidl
#define NULL
Definition: types.h:112

◆ ~CShellFolderViewCBWrapper()

virtual CShellFolderViewCBWrapper::~CShellFolderViewCBWrapper ( )
inlinevirtual

Definition at line 52 of file CDefViewUtil.cpp.

53 {
55 }
void WINAPI ILFree(LPITEMIDLIST pidl)
Definition: pidl.c:946

Member Function Documentation

◆ Initialize()

HRESULT WINAPI CShellFolderViewCBWrapper::Initialize ( LPCSFV  psvcbi)
inline

Definition at line 57 of file CDefViewUtil.cpp.

58 {
59 m_psf = psvcbi->pshf;
60 m_psvOuter = psvcbi->psvOuter;
61 m_Pidl = psvcbi->pidl ? ILClone(psvcbi->pidl) : NULL;
62 m_Callback = psvcbi->pfnCallback;
63 m_FVM = psvcbi->fvm;
64 m_Events = psvcbi->lEvents;
65 return S_OK;
66 }
CComPtr< IShellView > m_psvOuter
LPFNVIEWCALLBACK m_Callback
CComPtr< IShellFolder > m_psf
#define S_OK
Definition: intsafe.h:52
LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl)
Definition: pidl.c:237
FOLDERVIEWMODE fvm
Definition: shlobj.h:1282
IShellView * psvOuter
Definition: shlobj.h:1278
LPFNVIEWCALLBACK pfnCallback
Definition: shlobj.h:1281
LONG lEvents
Definition: shlobj.h:1280
PCIDLIST_ABSOLUTE pidl
Definition: shlobj.h:1279
IShellFolder * pshf
Definition: shlobj.h:1277

◆ MessageSFVCB()

STDMETHODIMP CShellFolderViewCBWrapper::MessageSFVCB ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
inlineoverride

Definition at line 69 of file CDefViewUtil.cpp.

70 {
71 switch (uMsg)
72 {
73 case SFVM_HWNDMAIN:
75 break;
76
78 if (m_FVM)
80 break;
81 }
82
84 if (SUCCEEDED(hr))
85 return hr;
86
87 switch (uMsg)
88 {
89 case SFVM_GETNOTIFY:
91 *(LONG*)lParam = m_Events;
92 return S_OK;
93 }
94 return hr;
95 }
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
HANDLE HWND
Definition: compat.h:19
#define SUCCEEDED(hr)
Definition: intsafe.h:50
long LONG
Definition: pedump.c:60
HRESULT hr
Definition: shlfolder.c:183
#define SFVM_DEFVIEWMODE
Definition: shlobj.h:1318
#define SFVM_HWNDMAIN
Definition: shlobj.h:1334
#define SFVM_GETNOTIFY
Definition: shlobj.h:1337
FOLDERVIEWMODE
Definition: shobjidl.idl:677
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41

Referenced by SetSite().

◆ SetSite()

STDMETHODIMP CShellFolderViewCBWrapper::SetSite ( IUnknown pUnkSite)
inlineoverride

Implements IObjectWithSite.

Definition at line 98 of file CDefViewUtil.cpp.

99 {
100 // learn.microsoft.com/en-us/windows/win32/shell/sfvm-setisfv
102 MessageSFVCB(SFVM_SETISFV, 0, (LPARAM)pUnkSite);
103 return hr;
104 }
STDMETHODIMP SetSite(IUnknown *pUnkSite) override
STDMETHODIMP MessageSFVCB(UINT uMsg, WPARAM wParam, LPARAM lParam) override
#define SFVM_SETISFV
Definition: shlobj.h:1330
LONG_PTR LPARAM
Definition: windef.h:208

Member Data Documentation

◆ m_Callback

LPFNVIEWCALLBACK CShellFolderViewCBWrapper::m_Callback
protected

Definition at line 45 of file CDefViewUtil.cpp.

Referenced by Initialize(), and MessageSFVCB().

◆ m_Events

LONG CShellFolderViewCBWrapper::m_Events
protected

Definition at line 47 of file CDefViewUtil.cpp.

Referenced by Initialize(), and MessageSFVCB().

◆ m_FVM

FOLDERVIEWMODE CShellFolderViewCBWrapper::m_FVM
protected

Definition at line 46 of file CDefViewUtil.cpp.

Referenced by Initialize(), and MessageSFVCB().

◆ m_hWndMain

HWND CShellFolderViewCBWrapper::m_hWndMain
protected

Definition at line 41 of file CDefViewUtil.cpp.

Referenced by MessageSFVCB().

◆ m_Pidl

PIDLIST_ABSOLUTE CShellFolderViewCBWrapper::m_Pidl
protected

Definition at line 42 of file CDefViewUtil.cpp.

Referenced by Initialize(), MessageSFVCB(), and ~CShellFolderViewCBWrapper().

◆ m_psf

CComPtr<IShellFolder> CShellFolderViewCBWrapper::m_psf
protected

Definition at line 43 of file CDefViewUtil.cpp.

Referenced by Initialize(), and MessageSFVCB().

◆ m_psvOuter

CComPtr<IShellView> CShellFolderViewCBWrapper::m_psvOuter
protected

Definition at line 44 of file CDefViewUtil.cpp.

Referenced by Initialize(), and MessageSFVCB().


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