ReactOS 0.4.15-dev-8100-g1887773
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 InsertMenusSB ([in] HMENU hmenuShared, [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths)
 
HRESULT SetMenuSB ([in] HMENU hmenuShared, [in] HOLEMENU holemenuReserved, [in] HWND hwndActiveObject)
 
HRESULT RemoveMenusSB ([in] HMENU hmenuShared)
 
HRESULT SetStatusTextSB ([in, unique] LPCOLESTR pszStatusText)
 
HRESULT EnableModelessSB ([in] BOOL fEnable)
 
HRESULT TranslateAcceleratorSB ([in] MSG *pmsg, [in] WORD wID)
 
HRESULT BrowseObject ([in] PCUIDLIST_RELATIVE pidl, [in] UINT wFlags)
 
HRESULT GetViewStateStream ([in] DWORD grfMode, [out] IStream **ppStrm)
 
HRESULT GetControlWindow ([in] UINT id, [out] HWND *phwnd)
 
HRESULT SendControlMsg ([in] UINT id, [in] UINT uMsg, [in] WPARAM wParam, [in] LPARAM lParam, [in] LRESULT *pret)
 
HRESULT QueryActiveShellView ([out] IShellView **ppshv)
 
HRESULT OnViewWindowActive ([in] IShellView *pshv)
 
HRESULT SetToolbarItems ([in] LPTBBUTTONSB lpButtons, [in] UINT nButtons, [in] UINT uFlags)
 
HRESULT GetWindow ([out] HWND *phwnd)
 
HRESULT ContextSensitiveHelp ([in] BOOL fEnterMode)
 
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Public Attributes

HWND m_hwnd
 

Additional Inherited Members

- Public Types inherited from IShellBrowser
typedef IShellBrowserLPSHELLBROWSER
 
typedef LPARAM LPTBBUTTONSB
 
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 }
static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
#define NULL
Definition: types.h:112
#define TEXT(s)
Definition: k32.h:26
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
HINSTANCE hInstance
Definition: winuser.h:3206
UINT style
Definition: winuser.h:3202
UINT cbSize
Definition: winuser.h:3201
WNDPROC lpfnWndProc
Definition: winuser.h:3203
LPCSTR lpszClassName
Definition: winuser.h:3211
#define GetModuleHandle
Definition: winbase.h:3827
#define CreateWindowEx
Definition: winuser.h:5755
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define CS_DBLCLKS
Definition: winuser.h:651
#define RegisterClassEx
Definition: winuser.h:5837
WNDCLASSEXA WNDCLASSEX
Definition: winuser.h:5719
#define SW_SHOW
Definition: winuser.h:775
char TCHAR
Definition: xmlstorage.h:189

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 }
#define DUM_MSG_BrowseObject
void add_msg(UINT uMsg, WPARAM wParam, LPARAM lParam)
#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 }
#define DUM_MSG_ContextSensitiveHelp

◆ 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 }
#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 }
#define DUM_MSG_GetControlWindow

◆ 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 }
#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 }
#define DUM_MSG_GetWindow
#define S_OK
Definition: intsafe.h:52

◆ 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 }
#define DUM_MSG_InsertMenusSB

◆ 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 }
#define DUM_MSG_OnViewWindowActive

◆ 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 }
#define DUM_MSG_QueryActiveShellView

◆ 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 }
const GUID IID_IUnknown
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 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 }
#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 }
#define DUM_MSG_SendControlMsg

◆ 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 }
#define DUM_MSG_SetMenuSB

◆ 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 }
#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

◆ 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

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: