summaryrefslogtreecommitdiff
path: root/iup/srcole/tOleClientSite.h
blob: 1525b9ed3b82c3e62faa0e6cdfeeb783cb1ca6ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// tOleClientSite.h: interface for the tOleClientSite class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TOLECLIENTSITE_H__49B97C0A_8DEB_11D3_A906_0004ACE655F9__INCLUDED_)
#define AFX_TOLECLIENTSITE_H__49B97C0A_8DEB_11D3_A906_0004ACE655F9__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include <windows.h>

class tOleHandler;

class tOleClientSite : public IOleClientSite  
{
public:
	tOleClientSite(LPUNKNOWN pUnkOuter, tOleHandler *olehandler);
	virtual ~tOleClientSite();

  STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  STDMETHODIMP_(ULONG) AddRef(void);
  STDMETHODIMP_(ULONG) Release(void);

  STDMETHODIMP SaveObject(void);
  STDMETHODIMP GetMoniker(DWORD, DWORD, LPMONIKER *);
  STDMETHODIMP GetContainer(LPOLECONTAINER *);
  STDMETHODIMP ShowObject(void);
  STDMETHODIMP OnShowWindow(BOOL);
  STDMETHODIMP RequestNewObjectLayout(void);

protected:
	tOleHandler * handler;
  ULONG m_cRef;
  //class CTenant      *m_pTen;
  LPUNKNOWN m_pUnkOuter;
};

#endif // !defined(AFX_TOLECLIENTSITE_H__49B97C0A_8DEB_11D3_A906_0004ACE655F9__INCLUDED_)