IOIPAO.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. //**********************************************************************
  2. // File name: IOIPAO.H
  3. //
  4. //      Definition of COleInPlaceActiveObject
  5. //
  6. // Copyright (c) 1993-1997 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _IOIPAO_H_)
  9. #define _IOIPAO_H_
  10. #include <ole2.h>
  11. #include "obj.h"
  12. class CSimpSvrObj;
  13. interface COleInPlaceActiveObject : public IOleInPlaceActiveObject
  14. {
  15. private:
  16. CSimpSvrObj FAR * m_lpObj;
  17. int m_nCount;
  18. public:
  19. COleInPlaceActiveObject::COleInPlaceActiveObject(CSimpSvrObj FAR * lpSimpSvrObj)
  20. {
  21. m_lpObj = lpSimpSvrObj;     // set up the back ptr
  22. m_nCount = 0;            // clear the ref count.
  23. };
  24. COleInPlaceActiveObject::~COleInPlaceActiveObject() {};   // destructor
  25. // IUnknown Methods
  26. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  27. STDMETHODIMP_(ULONG) AddRef ();
  28. STDMETHODIMP_(ULONG) Release ();
  29. STDMETHODIMP OnDocWindowActivate  ( BOOL fActivate) ;
  30. STDMETHODIMP OnFrameWindowActivate  ( BOOL fActivate) ;
  31. STDMETHODIMP GetWindow  ( HWND FAR* lphwnd);
  32. STDMETHODIMP ContextSensitiveHelp  ( BOOL fEnterMode);
  33. STDMETHODIMP TranslateAccelerator  ( LPMSG lpmsg);
  34. STDMETHODIMP ResizeBorder  ( LPCRECT lprectBorder,
  35.  LPOLEINPLACEUIWINDOW lpUIWindow,
  36.  BOOL fFrameWindow);
  37. STDMETHODIMP EnableModeless  ( BOOL fEnable);
  38. };
  39. #endif