ReactOS 0.4.16-dev-321-g63bb46a
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 379 of file utils.cpp.

Constructor & Destructor Documentation

◆ CDummyOleWindow()

CDummyOleWindow::CDummyOleWindow ( )
inline

Definition at line 386 of file utils.cpp.

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

◆ ~CDummyOleWindow()

virtual CDummyOleWindow::~CDummyOleWindow ( )
inlinevirtual

Definition at line 387 of file utils.cpp.

387{ }

Member Function Documentation

◆ ContextSensitiveHelp()

STDMETHODIMP CDummyOleWindow::ContextSensitiveHelp ( BOOL  fEnterMode)
inlineoverride

Implements IOleWindow.

Definition at line 421 of file utils.cpp.

422 {
423 return E_NOTIMPL;
424 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetWindow()

STDMETHODIMP CDummyOleWindow::GetWindow ( HWND phWnd)
inlineoverride

Implements IOleWindow.

Definition at line 414 of file utils.cpp.

415 {
416 *phWnd = m_hWnd;
417 if (!m_hWnd)
418 return E_NOTIMPL;
419 return S_OK;
420 }
#define S_OK
Definition: intsafe.h:52

◆ QueryInterface()

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

Definition at line 390 of file utils.cpp.

391 {
392 static const QITAB c_tab[] =
393 {
395 { NULL }
396 };
397 return ::QISearch(this, c_tab, riid, ppvObj);
398 }
REFIID riid
Definition: atlbase.h:39
#define QITABENT(Cthis, Ifoo)
Definition: shlwapi.h:2122

◆ STDMETHODIMP_() [1/2]

CDummyOleWindow::STDMETHODIMP_ ( ULONG  )
inlineoverride

Definition at line 399 of file utils.cpp.

400 {
401 return ++m_cRefs;
402 }

◆ STDMETHODIMP_() [2/2]

CDummyOleWindow::STDMETHODIMP_ ( ULONG  )
inlineoverride

Definition at line 403 of file utils.cpp.

404 {
405 if (--m_cRefs == 0)
406 {
407 delete this;
408 return 0;
409 }
410 return m_cRefs;
411 }

Member Data Documentation

◆ m_cRefs

LONG CDummyOleWindow::m_cRefs
protected

Definition at line 382 of file utils.cpp.

Referenced by STDMETHODIMP_().

◆ m_hWnd

HWND CDummyOleWindow::m_hWnd
protected

Definition at line 383 of file utils.cpp.

Referenced by GetWindow().


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