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.

48 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. public:
  18. COleInPlaceActiveObject::COleInPlaceActiveObject(CSimpSvrObj FAR * lpSimpSvrObj)
  19. {
  20. m_lpObj = lpSimpSvrObj; // set up the back ptr
  21. };
  22. COleInPlaceActiveObject::~COleInPlaceActiveObject() {}; // destructor
  23. // IUnknown Methods
  24. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  25. STDMETHODIMP_(ULONG) AddRef ();
  26. STDMETHODIMP_(ULONG) Release ();
  27. STDMETHODIMP OnDocWindowActivate ( BOOL fActivate) ;
  28. STDMETHODIMP OnFrameWindowActivate ( BOOL fActivate) ;
  29. STDMETHODIMP GetWindow ( HWND FAR* lphwnd);
  30. STDMETHODIMP ContextSensitiveHelp ( BOOL fEnterMode);
  31. STDMETHODIMP TranslateAccelerator ( LPMSG lpmsg);
  32. STDMETHODIMP ResizeBorder ( LPCRECT lprectBorder,
  33. LPOLEINPLACEUIWINDOW lpUIWindow,
  34. BOOL fFrameWindow);
  35. STDMETHODIMP EnableModeless ( BOOL fEnable);
  36. };
  37. #endif
  38.