ReactOS  0.4.14-dev-1314-gacf135d
CDummyShellBrowser Class Reference
Inheritance diagram for CDummyShellBrowser:
Collaboration diagram for CDummyShellBrowser:

Public Member Functions

 CDummyShellBrowser ()
 
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppvObject)
 
virtual ULONG STDMETHODCALLTYPE AddRef (void)
 
virtual ULONG STDMETHODCALLTYPE Release (void)
 
virtual HRESULT STDMETHODCALLTYPE GetWindow (HWND *phwnd)
 
virtual HRESULT STDMETHODCALLTYPE ContextSensitiveHelp (BOOL fEnterMode)
 
virtual HRESULT STDMETHODCALLTYPE InsertMenusSB (HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths)
 
virtual HRESULT STDMETHODCALLTYPE SetMenuSB (HMENU hmenuShared, HOLEMENU holemenuRes, HWND hwndActiveObject)
 
virtual HRESULT STDMETHODCALLTYPE RemoveMenusSB (HMENU hmenuShared)
 
virtual HRESULT STDMETHODCALLTYPE SetStatusTextSB (LPCWSTR pszStatusText)
 
virtual HRESULT STDMETHODCALLTYPE EnableModelessSB (BOOL fEnable)
 
virtual HRESULT STDMETHODCALLTYPE TranslateAcceleratorSB (MSG *pmsg, WORD wID)
 
virtual HRESULT STDMETHODCALLTYPE BrowseObject (PCUIDLIST_RELATIVE pidl, UINT wFlags)
 
virtual HRESULT STDMETHODCALLTYPE GetViewStateStream (DWORD grfMode, IStream **ppStrm)
 
virtual HRESULT STDMETHODCALLTYPE GetControlWindow (UINT id, HWND *phwnd)
 
virtual HRESULT STDMETHODCALLTYPE SendControlMsg (UINT id, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *pret)
 
virtual HRESULT STDMETHODCALLTYPE QueryActiveShellView (IShellView **ppshv)
 
virtual HRESULT STDMETHODCALLTYPE OnViewWindowActive (IShellView *pshv)
 
virtual HRESULT STDMETHODCALLTYPE SetToolbarItems (LPTBBUTTONSB lpButtons, UINT nButtons, UINT uFlags)
 
- Public Member Functions inherited from IShellBrowser
HRESULT SetStatusTextSB ([in, unique] LPCOLESTR pszStatusText)
 

Public Attributes

HWND m_hwnd
 
- Public Attributes inherited from IShellBrowser
FCT_ADDTOEND typedef LPARAM LPTBBUTTONSB
 

Additional Inherited Members

- Public Types inherited from IShellBrowser
typedef IShellBrowserLPSHELLBROWSER
 
typedef LPTBBUTTON LPTBBUTTONSB
 
- Public Types inherited from IOleWindow
typedef IOleWindowLPOLEWINDOW
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 295 of file IShellFolderViewCB.cpp.

Constructor & Destructor Documentation

◆ CDummyShellBrowser()

CDummyShellBrowser::CDummyShellBrowser ( )
inline

Definition at line 299 of file IShellFolderViewCB.cpp.

300  {
301  static const TCHAR* class_name = TEXT("DUMMY_TEST_CLASS");
302  WNDCLASSEX wx = {};
303  wx.cbSize = sizeof(WNDCLASSEX);
304  wx.lpfnWndProc = WndProc;
306  wx.lpszClassName = class_name;
307  wx.style = CS_DBLCLKS;
308  RegisterClassEx(&wx);
309  m_hwnd = CreateWindowEx(0, class_name, TEXT("dummy_name"), WS_OVERLAPPEDWINDOW, 0, 0, 0, 0, NULL, NULL, NULL, NULL);
311  }
UINT style
Definition: winuser.h:3177
#define RegisterClassEx
Definition: winuser.h:5812
WNDPROC lpfnWndProc
Definition: winuser.h:3178
LPCSTR lpszClassName
Definition: winuser.h:3186
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
HINSTANCE hInstance
Definition: winuser.h:3181
#define CreateWindowEx
Definition: winuser.h:5730
smooth NULL
Definition: ftsmooth.c:416
UINT cbSize
Definition: winuser.h:3176
#define SW_SHOW
Definition: winuser.h:769
char TCHAR
Definition: xmlstorage.h:189
static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
#define CS_DBLCLKS
Definition: winuser.h:646
#define TEXT(s)
Definition: k32.h:26
#define GetModuleHandle
Definition: winbase.h:3667
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
WNDCLASSEXA WNDCLASSEX
Definition: winuser.h:5694

Member Function Documentation

◆ AddRef()

virtual ULONG STDMETHODCALLTYPE CDummyShellBrowser::AddRef ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 323 of file IShellFolderViewCB.cpp.

324  {
325  return 2;
326  }

◆ BrowseObject()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::BrowseObject ( PCUIDLIST_RELATIVE  pidl,
UINT  wFlags 
)
inlinevirtual

Implements IShellBrowser.

Definition at line 384 of file IShellFolderViewCB.cpp.

385  {
386  //DbgPrint("%s()\n", __FUNCTION__);
388  return E_NOTIMPL;
389  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define DUM_MSG_BrowseObject
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ContextSensitiveHelp()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::ContextSensitiveHelp ( BOOL  fEnterMode)
inlinevirtual

Implements IOleWindow.

Definition at line 340 of file IShellFolderViewCB.cpp.

341  {
342  //DbgPrint("%s()\n", __FUNCTION__);
344  return E_NOTIMPL;
345  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define DUM_MSG_ContextSensitiveHelp
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ EnableModelessSB()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::EnableModelessSB ( BOOL  fEnable)
inlinevirtual

Implements IShellBrowser.

Definition at line 372 of file IShellFolderViewCB.cpp.

373  {
374  //DbgPrint("%s()\n", __FUNCTION__);
376  return E_NOTIMPL;
377  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define E_NOTIMPL
Definition: ddrawi.h:99
#define DUM_MSG_EnableModelessSB

◆ GetControlWindow()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::GetControlWindow ( UINT  id,
HWND phwnd 
)
inlinevirtual

Implements IShellBrowser.

Definition at line 396 of file IShellFolderViewCB.cpp.

397  {
398  //DbgPrint("%s()\n", __FUNCTION__);
400  return E_NOTIMPL;
401  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define DUM_MSG_GetControlWindow
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetViewStateStream()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::GetViewStateStream ( DWORD  grfMode,
IStream **  ppStrm 
)
inlinevirtual

Implements IShellBrowser.

Definition at line 390 of file IShellFolderViewCB.cpp.

391  {
392  //DbgPrint("%s()\n", __FUNCTION__);
394  return E_NOTIMPL;
395  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define E_NOTIMPL
Definition: ddrawi.h:99
#define DUM_MSG_GetViewStateStream

◆ GetWindow()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::GetWindow ( HWND phwnd)
inlinevirtual

Implements IOleWindow.

Definition at line 333 of file IShellFolderViewCB.cpp.

334  {
335  //DbgPrint("%s()\n", __FUNCTION__);
336  *phwnd = m_hwnd;
338  return S_OK;
339  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
#define DUM_MSG_GetWindow
smooth NULL
Definition: ftsmooth.c:416
#define S_OK
Definition: intsafe.h:59

◆ InsertMenusSB()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::InsertMenusSB ( HMENU  hmenuShared,
LPOLEMENUGROUPWIDTHS  lpMenuWidths 
)
inlinevirtual

Implements IShellBrowser.

Definition at line 348 of file IShellFolderViewCB.cpp.

349  {
350  //DbgPrint("%s()\n", __FUNCTION__);
352  return S_OK;
353  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
#define DUM_MSG_InsertMenusSB
smooth NULL
Definition: ftsmooth.c:416
#define S_OK
Definition: intsafe.h:59

◆ OnViewWindowActive()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::OnViewWindowActive ( IShellView pshv)
inlinevirtual

Implements IShellBrowser.

Definition at line 414 of file IShellFolderViewCB.cpp.

415  {
416  //DbgPrint("%s()\n", __FUNCTION__);
418  return E_NOTIMPL;
419  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define DUM_MSG_OnViewWindowActive
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ QueryActiveShellView()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::QueryActiveShellView ( IShellView **  ppshv)
inlinevirtual

Implements IShellBrowser.

Definition at line 408 of file IShellFolderViewCB.cpp.

409  {
410  //DbgPrint("%s()\n", __FUNCTION__);
412  return E_NOTIMPL;
413  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define DUM_MSG_QueryActiveShellView
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ QueryInterface()

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

Implements IUnknown.

Definition at line 314 of file IShellFolderViewCB.cpp.

315  {
316  if (riid == IID_IShellBrowser || riid == IID_IUnknown)
317  {
318  *ppvObject = this;
319  return S_OK;
320  }
321  return E_NOINTERFACE;
322  }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
const GUID IID_IUnknown
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define S_OK
Definition: intsafe.h:59

◆ Release()

virtual ULONG STDMETHODCALLTYPE CDummyShellBrowser::Release ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 327 of file IShellFolderViewCB.cpp.

328  {
329  return 1;
330  }

◆ RemoveMenusSB()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::RemoveMenusSB ( HMENU  hmenuShared)
inlinevirtual

Implements IShellBrowser.

Definition at line 360 of file IShellFolderViewCB.cpp.

361  {
362  //DbgPrint("%s()\n", __FUNCTION__);
364  return E_NOTIMPL;
365  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define E_NOTIMPL
Definition: ddrawi.h:99
#define DUM_MSG_RemoveMenusSB

◆ SendControlMsg()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::SendControlMsg ( UINT  id,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
LRESULT pret 
)
inlinevirtual

Implements IShellBrowser.

Definition at line 402 of file IShellFolderViewCB.cpp.

403  {
404  //DbgPrint("%s()\n", __FUNCTION__);
406  return E_NOTIMPL;
407  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define DUM_MSG_SendControlMsg
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ SetMenuSB()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::SetMenuSB ( HMENU  hmenuShared,
HOLEMENU  holemenuRes,
HWND  hwndActiveObject 
)
inlinevirtual

Implements IShellBrowser.

Definition at line 354 of file IShellFolderViewCB.cpp.

355  {
356  //DbgPrint("%s()\n", __FUNCTION__);
358  return S_OK;
359  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define DUM_MSG_SetMenuSB
#define S_OK
Definition: intsafe.h:59

◆ SetStatusTextSB()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::SetStatusTextSB ( LPCWSTR  pszStatusText)
inlinevirtual

Definition at line 366 of file IShellFolderViewCB.cpp.

367  {
368  //DbgPrint("%s()\n", __FUNCTION__);
370  return E_NOTIMPL;
371  }
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define E_NOTIMPL
Definition: ddrawi.h:99
#define DUM_MSG_SetStatusTextSB

◆ SetToolbarItems()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::SetToolbarItems ( LPTBBUTTONSB  lpButtons,
UINT  nButtons,
UINT  uFlags 
)
inlinevirtual

Implements IShellBrowser.

Definition at line 420 of file IShellFolderViewCB.cpp.

421  {
422  //DbgPrint("%s()\n", __FUNCTION__);
424  return E_NOTIMPL;
425  }
#define DUM_MSG_SetToolbarItems
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ TranslateAcceleratorSB()

virtual HRESULT STDMETHODCALLTYPE CDummyShellBrowser::TranslateAcceleratorSB ( MSG pmsg,
WORD  wID 
)
inlinevirtual

Implements IShellBrowser.

Definition at line 378 of file IShellFolderViewCB.cpp.

379  {
380  //DbgPrint("%s()\n", __FUNCTION__);
382  return E_NOTIMPL;
383  }
#define DUM_MSG_TranslateAcceleratorSB
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
smooth NULL
Definition: ftsmooth.c:416
#define E_NOTIMPL
Definition: ddrawi.h:99

Member Data Documentation

◆ m_hwnd

HWND CDummyShellBrowser::m_hwnd

Definition at line 298 of file IShellFolderViewCB.cpp.

Referenced by CDummyShellBrowser(), and GetWindow().


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