ReactOS  0.4.15-dev-3163-gf17c2c0
CFolderViewCB Class Reference

#include <foldercommon.h>

Inheritance diagram for CFolderViewCB:
Collaboration diagram for CFolderViewCB:

Public Member Functions

 CFolderViewCB ()
 
virtual ~CFolderViewCB ()
 
virtual HRESULT STDMETHODCALLTYPE MessageSFVCB (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
virtual HRESULT STDMETHODCALLTYPE 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  }
#define InterlockedIncrement
Definition: armddk.h:53
LONG g_AddRef

Referenced by QueryInterface().

◆ Initialize()

virtual HRESULT STDMETHODCALLTYPE CFolderViewCB::Initialize ( IShellView psv)
inlinevirtual

Definition at line 43 of file foldercommon.h.

44  {
45  m_View = psv;
46  return S_OK;
47  }
IShellView * m_View
Definition: foldercommon.h:16
#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  {
27  case SFVM_DEFVIEWMODE:
28  {
29  FOLDERVIEWMODE* pViewMode = (FOLDERVIEWMODE*)lParam;
30  *pViewMode = FVM_DETAILS;
31  return S_OK;
32  }
33  case SFVM_COLUMNCLICK:
34  return S_FALSE;
36  return S_OK;
37  }
38 
39  return E_NOTIMPL;
40  }
#define SFVM_COLUMNCLICK
Definition: shlobj.h:1242
#define S_FALSE
Definition: winerror.h:2357
FOLDERVIEWMODE
Definition: shobjidl.idl:663
#define SFVM_BACKGROUNDENUM
Definition: shlobj.h:1250
#define SFVM_DEFVIEWMODE
Definition: shlobj.h:1245
#define S_OK
Definition: intsafe.h:52
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ MessageSFVCB() [2/3]

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

Definition at line 23 of file foldercommon.h.

24  {
25  switch (uMsg)
26  {
27  case SFVM_DEFVIEWMODE:
28  {
29  FOLDERVIEWMODE* pViewMode = (FOLDERVIEWMODE*)lParam;
30  *pViewMode = FVM_DETAILS;
31  return S_OK;
32  }
33  case SFVM_COLUMNCLICK:
34  return S_FALSE;
36  return S_OK;
37  }
38 
39  DbgPrint("MessageSFVCB unimplemented %d %08x %08x\n", uMsg, wParam, lParam);
40  return E_NOTIMPL;
41  }
#define DbgPrint
Definition: hal.h:12
WPARAM wParam
Definition: combotst.c:138
#define SFVM_COLUMNCLICK
Definition: shlobj.h:1242
#define S_FALSE
Definition: winerror.h:2357
FOLDERVIEWMODE
Definition: shobjidl.idl:663
#define SFVM_BACKGROUNDENUM
Definition: shlobj.h:1250
#define SFVM_DEFVIEWMODE
Definition: shlobj.h:1245
#define S_OK
Definition: intsafe.h:52
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ MessageSFVCB() [3/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  }
WPARAM wParam
Definition: combotst.c:138
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ 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  }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define S_OK
Definition: intsafe.h:52
virtual ULONG STDMETHODCALLTYPE AddRef(void)

◆ 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
#define InterlockedIncrement
Definition: armddk.h:53

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: