summaryrefslogtreecommitdiff
path: root/iup/srcole/tOleInPlaceSite.h
blob: d559df28ac96f770c0d82f163b55016756ba7d4b (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
41
42
43
44
45
46
47
// tOleInPlaceSite.h: interface for the tOleInPlaceSite class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TOLEINPLACESITE_H__37A5ADEB_91FB_11D3_A906_0004AC252223__INCLUDED_)
#define AFX_TOLEINPLACESITE_H__37A5ADEB_91FB_11D3_A906_0004AC252223__INCLUDED_

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

#include <windows.h>
#include "tOleInPlaceFrame.h"

class tOleInPlaceSite : public IOleInPlaceSite  
{
protected:
  ULONG               m_cRef;
  class tOleHandler  *m_pTen;
  LPUNKNOWN           m_pUnkOuter;

public:
	tOleInPlaceFrame * m_oleinplaceframe;
  tOleInPlaceSite(class tOleHandler *, LPUNKNOWN);
  ~tOleInPlaceSite(void);

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

  STDMETHODIMP GetWindow(HWND *);
  STDMETHODIMP ContextSensitiveHelp(BOOL);
  STDMETHODIMP CanInPlaceActivate(void);
  STDMETHODIMP OnInPlaceActivate(void);
  STDMETHODIMP OnUIActivate(void);
  STDMETHODIMP GetWindowContext(LPOLEINPLACEFRAME *
                  , LPOLEINPLACEUIWINDOW *, LPRECT, LPRECT
                  , LPOLEINPLACEFRAMEINFO);
  STDMETHODIMP Scroll(SIZE);
  STDMETHODIMP OnUIDeactivate(BOOL);
  STDMETHODIMP OnInPlaceDeactivate(void);
  STDMETHODIMP DiscardUndoState(void);
  STDMETHODIMP DeactivateAndUndo(void);
  STDMETHODIMP OnPosRectChange(LPCRECT);
};

#endif // !defined(AFX_TOLEINPLACESITE_H__37A5ADEB_91FB_11D3_A906_0004AC252223__INCLUDED_)