ReactOS 0.4.15-dev-7659-ga55345b
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
 
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 ()
 

Protected Member Functions

const QITABGetQITab ()
 
virtual const QITABGetQITab ()=0
 

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 }
HWND m_hwnd
Definition: menu.cpp:34
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

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:52

◆ 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 }
const GUID IID_IOleWindow
#define OFFSETOFCLASS(base, derived)
Definition: shlwapi.h:2090

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

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: