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

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * IIPOBJ.H
  3.  *
  4.  * Definitions of a template IOleInPlaceObject interface
  5.  * implementation.
  6.  *
  7.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13. #ifndef _IIPOBJ_H_
  14. #define _IIPOBJ_H_
  15. #include <inole.h>
  16. class CImpIOleInPlaceObject;
  17. typedef class CImpIOleInPlaceObject *PCImpIOleInPlaceObject;
  18. class CImpIOleInPlaceObject : public IOleInPlaceObject
  19.     {
  20.     protected:
  21.         ULONG           m_cRef;      //Interface reference count
  22.         LPVOID          m_pObj;      //Backpointer to the object
  23.         LPUNKNOWN       m_pUnkOuter; //For delegation
  24.     public:
  25.         CImpIOleInPlaceObject(LPVOID, LPUNKNOWN);
  26.         ~CImpIOleInPlaceObject(void);
  27.         STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  28.         STDMETHODIMP_(ULONG) AddRef(void);
  29.         STDMETHODIMP_(ULONG) Release(void);
  30.         STDMETHODIMP GetWindow(HWND *);
  31.         STDMETHODIMP ContextSensitiveHelp(BOOL);
  32.         STDMETHODIMP InPlaceDeactivate(void);
  33.         STDMETHODIMP UIDeactivate(void);
  34.         STDMETHODIMP SetObjectRects(LPCRECT, LPCRECT);
  35.         STDMETHODIMP ReactivateAndUndo(void);
  36.     };
  37. #endif //_IIPOBJ_H_