WindowsXP-SP1/com/oleutest/simpsvr/ioipao.h
2020-09-30 16:53:49 +02:00

49 lines
1.4 KiB
C++
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//**********************************************************************
// 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;
public:
COleInPlaceActiveObject::COleInPlaceActiveObject(CSimpSvrObj FAR * lpSimpSvrObj)
{
m_lpObj = lpSimpSvrObj; // set up the back ptr
};
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