ReactOS  0.4.14-dev-49-gfb4591c
CDummyWindow Class Reference
Inheritance diagram for CDummyWindow:
Collaboration diagram for CDummyWindow:

Public Member Functions

 CDummyWindow (HWND hwnd)
 
HRESULT STDMETHODCALLTYPE GetWindow (HWND *phwnd)
 
HRESULT STDMETHODCALLTYPE ContextSensitiveHelp (BOOL fEnterMode)
 
- Public Member Functions inherited from CUnknownBase< IOleWindow >
 CUnknownBase (bool autoDelete=true, LONG initialRef=0)
 
ULONG STDMETHODCALLTYPE AddRef ()
 
ULONG STDMETHODCALLTYPE Release ()
 
HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppv)
 
virtual ~CUnknownBase ()
 
LONG GetRef () const
 

Protected Member Functions

const QITABGetQITab ()
 

Protected Attributes

HWND m_hwnd
 

Additional Inherited Members

- Public Types inherited from IOleWindow
typedef IOleWindowLPOLEWINDOW
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 31 of file menu.cpp.

Constructor & Destructor Documentation

◆ CDummyWindow()

CDummyWindow::CDummyWindow ( HWND  hwnd)
inline

Definition at line 43 of file menu.cpp.

44  :CUnknownBase( true, 0 )
45  {
46  m_hwnd = hwnd;
47  }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
HWND m_hwnd
Definition: menu.cpp:34
CUnknownBase(bool autoDelete=true, LONG initialRef=0)
Definition: unknownbase.h:13

Member Function Documentation

◆ ContextSensitiveHelp()

HRESULT STDMETHODCALLTYPE CDummyWindow::ContextSensitiveHelp ( BOOL  fEnterMode)
inline

Implements IOleWindow.

Definition at line 55 of file menu.cpp.

56  {
57  return S_OK;
58  }
#define S_OK
Definition: intsafe.h:59

◆ GetQITab()

const QITAB* CDummyWindow::GetQITab ( )
inlineprotectedvirtual

Implements CUnknownBase< IOleWindow >.

Definition at line 36 of file menu.cpp.

37  {
38  static const QITAB tab[] = {{ &IID_IOleWindow, OFFSETOFCLASS(IOleWindow, CDummyWindow) }, {0}};
39  return tab;
40  }
#define OFFSETOFCLASS(base, derived)
Definition: shlwapi.h:2086
const GUID IID_IOleWindow

◆ GetWindow()

HRESULT STDMETHODCALLTYPE CDummyWindow::GetWindow ( HWND phwnd)
inline

Implements IOleWindow.

Definition at line 49 of file menu.cpp.

50  {
51  *phwnd = m_hwnd;
52  return S_OK;
53  }
HWND m_hwnd
Definition: menu.cpp:34
#define S_OK
Definition: intsafe.h:59

Member Data Documentation

◆ m_hwnd

HWND CDummyWindow::m_hwnd
protected

Definition at line 34 of file menu.cpp.

Referenced by CDummyWindow(), and GetWindow().


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