ReactOS 0.4.15-dev-8231-g29a56f3
CDummyOleWindow Class Reference
Inheritance diagram for CDummyOleWindow:
Collaboration diagram for CDummyOleWindow:

Public Member Functions

 CDummyOleWindow ()
 
virtual ~CDummyOleWindow ()
 
STDMETHODIMP QueryInterface (REFIID riid, LPVOID *ppvObj) override
 
 STDMETHODIMP_ (ULONG) AddRef() override
 
 STDMETHODIMP_ (ULONG) Release() override
 
STDMETHODIMP GetWindow (HWND *phWnd) override
 
STDMETHODIMP ContextSensitiveHelp (BOOL fEnterMode) override
 
HRESULT GetWindow ([out] HWND *phwnd)
 
HRESULT ContextSensitiveHelp ([in] BOOL fEnterMode)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Protected Attributes

LONG m_cRefs
 
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 334 of file utils.cpp.

Constructor & Destructor Documentation

◆ CDummyOleWindow()

CDummyOleWindow::CDummyOleWindow ( )
inline

Definition at line 341 of file utils.cpp.

341: m_cRefs(1), m_hWnd(NULL) { }
#define NULL
Definition: types.h:112

◆ ~CDummyOleWindow()

virtual CDummyOleWindow::~CDummyOleWindow ( )
inlinevirtual

Definition at line 342 of file utils.cpp.

342{ }

Member Function Documentation

◆ ContextSensitiveHelp()

STDMETHODIMP CDummyOleWindow::ContextSensitiveHelp ( BOOL  fEnterMode)
inlineoverride

Implements IOleWindow.

Definition at line 376 of file utils.cpp.

377 {
378 return E_NOTIMPL;
379 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetWindow()

STDMETHODIMP CDummyOleWindow::GetWindow ( HWND phWnd)
inlineoverride

Implements IOleWindow.

Definition at line 369 of file utils.cpp.

370 {
371 *phWnd = m_hWnd;
372 if (!m_hWnd)
373 return E_NOTIMPL;
374 return S_OK;
375 }
#define S_OK
Definition: intsafe.h:52

◆ QueryInterface()

STDMETHODIMP CDummyOleWindow::QueryInterface ( REFIID  riid,
LPVOID ppvObj 
)
inlineoverride

Definition at line 345 of file utils.cpp.

346 {
347 static const QITAB c_tab[] =
348 {
350 { NULL }
351 };
352 return ::QISearch(this, c_tab, riid, ppvObj);
353 }
REFIID riid
Definition: atlbase.h:39
#define QITABENT(Cthis, Ifoo)
Definition: shlwapi.h:2094

◆ STDMETHODIMP_() [1/2]

CDummyOleWindow::STDMETHODIMP_ ( ULONG  )
inlineoverride

Definition at line 354 of file utils.cpp.

355 {
356 return ++m_cRefs;
357 }

◆ STDMETHODIMP_() [2/2]

CDummyOleWindow::STDMETHODIMP_ ( ULONG  )
inlineoverride

Definition at line 358 of file utils.cpp.

359 {
360 if (--m_cRefs == 0)
361 {
362 delete this;
363 return 0;
364 }
365 return m_cRefs;
366 }

Member Data Documentation

◆ m_cRefs

LONG CDummyOleWindow::m_cRefs
protected

Definition at line 337 of file utils.cpp.

Referenced by STDMETHODIMP_().

◆ m_hWnd

HWND CDummyOleWindow::m_hWnd
protected

Definition at line 338 of file utils.cpp.

Referenced by GetWindow().


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