ReactOS 0.4.15-dev-7924-g5949c20
CFolderViewCB Class Reference

#include <foldercommon.h>

Inheritance diagram for CFolderViewCB:
Collaboration diagram for CFolderViewCB:

Public Member Functions

 CFolderViewCB ()
 
virtual ~CFolderViewCB ()
 
STDMETHODIMP MessageSFVCB (UINT uMsg, WPARAM wParam, LPARAM lParam) override
 
STDMETHOD() Initialize (IShellView *psv)
 
virtual ~CFolderViewCB ()
 
STDMETHODIMP MessageSFVCB (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
 CFolderViewCB (void)
 
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppvObject)
 
virtual ULONG STDMETHODCALLTYPE AddRef (void)
 
virtual ULONG STDMETHODCALLTYPE Release (void)
 
virtual HRESULT STDMETHODCALLTYPE MessageSFVCB (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
- 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 ()
 

Private Attributes

IShellViewm_View
 
LONG m_RefCount
 

Additional Inherited Members

- 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 12 of file foldercommon.h.

Constructor & Destructor Documentation

◆ CFolderViewCB() [1/2]

CFolderViewCB::CFolderViewCB ( )
inline

Definition at line 20 of file foldercommon.h.

20: m_View(NULL) {}
IShellView * m_View
Definition: foldercommon.h:16
#define NULL
Definition: types.h:112

◆ ~CFolderViewCB() [1/2]

virtual CFolderViewCB::~CFolderViewCB ( )
inlinevirtual

Definition at line 21 of file foldercommon.h.

21{}

◆ ~CFolderViewCB() [2/2]

virtual CFolderViewCB::~CFolderViewCB ( )
inlinevirtual

Definition at line 17 of file CFolderViewCB.cpp.

18 {
19 }

◆ CFolderViewCB() [2/2]

CFolderViewCB::CFolderViewCB ( void  )
inline

Definition at line 249 of file IShellFolderViewCB.cpp.

249 :
250 m_RefCount(1)
251 {
252 }

Member Function Documentation

◆ AddRef()

virtual ULONG STDMETHODCALLTYPE CFolderViewCB::AddRef ( void  )
inlinevirtual

Definition at line 263 of file IShellFolderViewCB.cpp.

264 {
267 }
LONG g_AddRef
#define InterlockedIncrement
Definition: armddk.h:53

Referenced by QueryInterface().

◆ Initialize()

STDMETHOD() CFolderViewCB::Initialize ( IShellView psv)
inline

Definition at line 45 of file foldercommon.h.

46 {
47 m_View = psv;
48 return S_OK;
49 }
#define S_OK
Definition: intsafe.h:52

◆ MessageSFVCB() [1/3]

STDMETHODIMP CFolderViewCB::MessageSFVCB ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
inline

Definition at line 22 of file CFolderViewCB.cpp.

23 {
24 /* TODO: Handle SFVM_GET_WEBVIEW_CONTENT to add tasks */
25 switch (uMsg)
26 {
28 {
30 *pViewMode = FVM_DETAILS;
31 return S_OK;
32 }
34 return S_FALSE;
36 return S_OK;
37 }
38
39 return E_NOTIMPL;
40 }
LPARAM lParam
Definition: combotst.c:139
#define E_NOTIMPL
Definition: ddrawi.h:99
#define SFVM_DEFVIEWMODE
Definition: shlobj.h:1311
#define SFVM_BACKGROUNDENUM
Definition: shlobj.h:1316
#define SFVM_COLUMNCLICK
Definition: shlobj.h:1308
FOLDERVIEWMODE
Definition: shobjidl.idl:672
@ FVM_DETAILS
Definition: shobjidl.idl:678
#define S_FALSE
Definition: winerror.h:2357

◆ MessageSFVCB() [2/3]

virtual HRESULT STDMETHODCALLTYPE CFolderViewCB::MessageSFVCB ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
inlinevirtual

Definition at line 273 of file IShellFolderViewCB.cpp.

274 {
275 //DbgPrint("MessageSFVCB(uMsg:%s, wParam:%u, lParam:%u\n", msg2str(uMsg), wParam, lParam);
276 add_msg(uMsg, wParam, lParam);
277 return E_NOTIMPL;
278 }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
WPARAM wParam
Definition: combotst.c:138

◆ MessageSFVCB() [3/3]

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

Definition at line 23 of file foldercommon.h.

24 {
25 switch (uMsg)
26 {
28 {
30 *pViewMode = FVM_DETAILS;
31 return S_OK;
32 }
33
35 return S_FALSE;
36
38 return S_OK;
39 }
40
41 DbgPrint("MessageSFVCB unimplemented %d %08x %08x\n", uMsg, wParam, lParam);
42 return E_NOTIMPL;
43 }
#define DbgPrint
Definition: hal.h:12

◆ QueryInterface()

virtual HRESULT STDMETHODCALLTYPE CFolderViewCB::QueryInterface ( REFIID  riid,
void **  ppvObject 
)
inlinevirtual

Definition at line 253 of file IShellFolderViewCB.cpp.

254 {
255 if (riid == IID_IShellFolderViewCB)
256 {
257 *ppvObject = static_cast<IShellFolderViewCB*>(this);
258 AddRef();
259 return S_OK;
260 }
261 return E_NOINTERFACE;
262 }
virtual ULONG STDMETHODCALLTYPE AddRef(void)
REFIID riid
Definition: atlbase.h:39
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ Release()

virtual ULONG STDMETHODCALLTYPE CFolderViewCB::Release ( void  )
inlinevirtual

Definition at line 268 of file IShellFolderViewCB.cpp.

269 {
272 }
LONG g_Release
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ m_RefCount

LONG CFolderViewCB::m_RefCount
private

Definition at line 280 of file IShellFolderViewCB.cpp.

Referenced by AddRef(), and Release().

◆ m_View

IShellView* CFolderViewCB::m_View
private

Definition at line 16 of file foldercommon.h.

Referenced by Initialize().


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