ReactOS 0.4.16-dev-937-g7afcd2a
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 522 of file utils.cpp.

Constructor & Destructor Documentation

◆ CDummyOleWindow()

CDummyOleWindow::CDummyOleWindow ( )
inline

Definition at line 529 of file utils.cpp.

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

◆ ~CDummyOleWindow()

virtual CDummyOleWindow::~CDummyOleWindow ( )
inlinevirtual

Definition at line 530 of file utils.cpp.

530{ }

Member Function Documentation

◆ ContextSensitiveHelp()

STDMETHODIMP CDummyOleWindow::ContextSensitiveHelp ( BOOL  fEnterMode)
inlineoverride

Implements IOleWindow.

Definition at line 564 of file utils.cpp.

565 {
566 return E_NOTIMPL;
567 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetWindow()

STDMETHODIMP CDummyOleWindow::GetWindow ( HWND phWnd)
inlineoverride

Implements IOleWindow.

Definition at line 557 of file utils.cpp.

558 {
559 *phWnd = m_hWnd;
560 if (!m_hWnd)
561 return E_NOTIMPL;
562 return S_OK;
563 }
#define S_OK
Definition: intsafe.h:52

◆ QueryInterface()

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

Definition at line 533 of file utils.cpp.

534 {
535 static const QITAB c_tab[] =
536 {
538 { NULL }
539 };
540 return ::QISearch(this, c_tab, riid, ppvObj);
541 }
REFIID riid
Definition: atlbase.h:39
#define QITABENT(Cthis, Ifoo)
Definition: shlwapi.h:2139

◆ STDMETHODIMP_() [1/2]

CDummyOleWindow::STDMETHODIMP_ ( ULONG  )
inlineoverride

Definition at line 542 of file utils.cpp.

543 {
544 return ++m_cRefs;
545 }

◆ STDMETHODIMP_() [2/2]

CDummyOleWindow::STDMETHODIMP_ ( ULONG  )
inlineoverride

Definition at line 546 of file utils.cpp.

547 {
548 if (--m_cRefs == 0)
549 {
550 delete this;
551 return 0;
552 }
553 return m_cRefs;
554 }

Member Data Documentation

◆ m_cRefs

LONG CDummyOleWindow::m_cRefs
protected

Definition at line 525 of file utils.cpp.

Referenced by STDMETHODIMP_().

◆ m_hWnd

HWND CDummyOleWindow::m_hWnd
protected

Definition at line 526 of file utils.cpp.

Referenced by GetWindow().


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