diff options
Diffstat (limited to 'private/oleutest/simpsvr/ioipao.h')
-rw-r--r-- | private/oleutest/simpsvr/ioipao.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/private/oleutest/simpsvr/ioipao.h b/private/oleutest/simpsvr/ioipao.h new file mode 100644 index 000000000..d064e8a9e --- /dev/null +++ b/private/oleutest/simpsvr/ioipao.h @@ -0,0 +1,48 @@ +//********************************************************************** +// 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 |