blob: 05a5c51c76eabb7e7cd5080a3d17f5278b91f407 (
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
44
45
46
47
48
49
50
|
//**********************************************************************
// File name: IOIPAO.H
//
// Definition of COleInPlaceActiveObject
//
// Copyright (c) 1993 Microsoft Corporation. All rights reserved.
//**********************************************************************
#if !defined( _IOIPAO_H_)
#define _IOIPAO_H_
#include <ole2.h>
#include "obj.h"
class CSimpSvrObj;
interface COleInPlaceActiveObject : public IOleInPlaceActiveObject
{
private:
CSimpSvrObj FAR * m_lpObj;
int m_nCount;
public:
COleInPlaceActiveObject::COleInPlaceActiveObject(CSimpSvrObj FAR * lpSimpSvrObj)
{
m_lpObj = lpSimpSvrObj; // set up the back ptr
m_nCount = 0; // clear the ref count.
};
COleInPlaceActiveObject::~COleInPlaceActiveObject() {}; // destructor
// IUnknown Methods
STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
STDMETHODIMP_(ULONG) AddRef ();
STDMETHODIMP_(ULONG) Release ();
STDMETHODIMP OnDocWindowActivate ( BOOL fActivate) ;
STDMETHODIMP OnFrameWindowActivate ( BOOL fActivate) ;
STDMETHODIMP GetWindow ( HWND FAR* lphwnd);
STDMETHODIMP ContextSensitiveHelp ( BOOL fEnterMode);
STDMETHODIMP TranslateAccelerator ( LPMSG lpmsg);
STDMETHODIMP ResizeBorder ( LPCRECT lprectBorder,
LPOLEINPLACEUIWINDOW lpUIWindow,
BOOL fFrameWindow);
STDMETHODIMP EnableModeless ( BOOL fEnable);
};
#endif
|