summaryrefslogtreecommitdiffstats
path: root/private/oleutest/simpsvr/ioipo.h
blob: da45b425447c6dd596ae26249da4426d2e664413 (plain) (blame)
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
//**********************************************************************
// File name: ioipo.h
//
//      Definition of COleInPlaceObject
//
// Copyright (c) 1993 Microsoft Corporation. All rights reserved.
//**********************************************************************

#if !defined( _IOIPO_H_)
#define _IOIPO_H_


#include <ole2.h>
#include "obj.h"

class CSimpSvrObj;

interface COleInPlaceObject : public IOleInPlaceObject
{
private:
    CSimpSvrObj FAR * m_lpObj;

public:
    COleInPlaceObject::COleInPlaceObject(CSimpSvrObj FAR * lpSimpSvrObj)
        {
        m_lpObj = lpSimpSvrObj;
        };
    COleInPlaceObject::~COleInPlaceObject() {};

//  IUnknown Methods
    STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
    STDMETHODIMP_(ULONG) AddRef ();
    STDMETHODIMP_(ULONG) Release ();

    STDMETHODIMP InPlaceDeactivate  ();
    STDMETHODIMP UIDeactivate  () ;
    STDMETHODIMP SetObjectRects  ( LPCRECT lprcPosRect, LPCRECT lprcClipRect);
    STDMETHODIMP GetWindow  ( HWND FAR* lphwnd) ;
    STDMETHODIMP ContextSensitiveHelp  ( BOOL fEnterMode);
    STDMETHODIMP ReactivateAndUndo  ();
};

#endif