Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4 KiB

  1. //**********************************************************************
  2. // File name: IOIPAO.H
  3. //
  4. // Definition of COleInPlaceActiveObject
  5. //
  6. // Copyright (c) 1993 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