home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 November / PCWorld_2000-11_cd.bin / Software / Topware / devc40 / _SETUP.5 / Group3 / richole.h < prev    next >
C/C++ Source or Header  |  1999-11-07  |  3KB  |  104 lines

  1. #ifndef _RICHOLE_H
  2. #define    _RICHOLE_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #pragma pack(push,4)
  7. #define REO_GETOBJ_NO_INTERFACES    0
  8. #define REO_GETOBJ_POLEOBJ    1
  9. #define REO_GETOBJ_PSTG    2
  10. #define REO_GETOBJ_POLESITE    4
  11. #define REO_GETOBJ_ALL_INTERFACES    7
  12. #define REO_CP_SELECTION ((ULONG)-1)
  13. #define REO_IOB_SELECTION ((ULONG)-1)
  14. #define REO_IOB_USE_CP ((ULONG)-2)
  15. #define REO_NULL    0
  16. #define REO_READWRITEMASK    0x3FL
  17. #define REO_DONTNEEDPALETTE    32
  18. #define REO_BLANK    16
  19. #define REO_DYNAMICSIZE        8
  20. #define REO_INVERTEDSELECT    4
  21. #define REO_BELOWBASELINE    2
  22. #define REO_RESIZABLE    1
  23. #define REO_LINK    0x80000000
  24. #define REO_STATIC    0x40000000
  25. #define REO_SELECTED    0x08000000
  26. #define REO_OPEN    0x4000000
  27. #define REO_INPLACEACTIVE    0x2000000
  28. #define REO_HILITED    0x1000000
  29. #define REO_LINKAVAILABLE    0x800000
  30. #define REO_GETMETAFILE    0x400000
  31. #define RECO_PASTE    0
  32. #define RECO_DROP    1
  33. #define RECO_COPY    2
  34. #define RECO_CUT    3
  35. #define RECO_DRAG    4
  36.  
  37. extern const GUID IID_IRichEditOle;
  38. extern const GUID IID_IRichEditOleCallback;
  39. #ifndef INITGUID
  40. typedef struct _reobject {
  41.     DWORD cbStruct;
  42.     LONG    cp;
  43.     CLSID    clsid;
  44.     LPOLEOBJECT    poleobj;
  45.     LPSTORAGE    pstg;
  46.     LPOLECLIENTSITE    polesite;
  47.     SIZEL    sizel;
  48.     DWORD    dvaspect;
  49.     DWORD    dwFlags;
  50.     DWORD    dwUser;
  51. } REOBJECT;
  52.  
  53. #undef INTERFACE
  54. #define INTERFACE IRichEditOle
  55. DECLARE_INTERFACE_(IRichEditOle, IUnknown)
  56. {
  57.     STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
  58.     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  59.     STDMETHOD_(ULONG,Release)(THIS) PURE;
  60.     STDMETHOD(GetClientSite)(THIS_ LPOLECLIENTSITE*) PURE;
  61.     STDMETHOD_(LONG,GetObjectCount)(THIS) PURE;
  62.     STDMETHOD_(LONG,GetLinkCount)(THIS) PURE;
  63.     STDMETHOD(GetObject)(THIS_ LONG, REOBJECT*,DWORD) PURE;
  64.     STDMETHOD(InsertObject)(THIS_ REOBJECT*) PURE;
  65.     STDMETHOD(ConvertObject)(THIS_ LONG,REFCLSID,LPCSTR) PURE;
  66.     STDMETHOD(ActivateAs)(THIS_ REFCLSID,REFCLSID) PURE;
  67.     STDMETHOD(SetHostNames)(THIS_ LPCSTR,LPCSTR) PURE;
  68.     STDMETHOD(SetLinkAvailable)(THIS_ LONG,BOOL) PURE;
  69.     STDMETHOD(SetDvaspect)(THIS_ LONG,DWORD) PURE;
  70.     STDMETHOD(HandsOffStorage)(THIS_ LONG) PURE;
  71.     STDMETHOD(SaveCompleted)(THIS_ LONG,LPSTORAGE) PURE;
  72.     STDMETHOD(InPlaceDeactivate)(THIS) PURE;
  73.     STDMETHOD(ContextSensitiveHelp)(THIS_ BOOL) PURE;
  74.     STDMETHOD(GetClipboardData)(THIS_ CHARRANGE*,DWORD,LPDATAOBJECT*) PURE;
  75.     STDMETHOD(ImportDataObject)(THIS_ LPDATAOBJECT,CLIPFORMAT,HGLOBAL) PURE;
  76. };
  77. typedef IRichEditOle *LPRICHEDITOLE;
  78.  
  79. #undef INTERFACE
  80. #define INTERFACE IRichEditOleCallback
  81. DECLARE_INTERFACE_(IRichEditOleCallback, IUnknown)
  82. {
  83.     STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
  84.     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  85.     STDMETHOD_(ULONG,Release)(THIS) PURE;
  86.     STDMETHOD(GetNewStorage)(THIS_ LPSTORAGE*) PURE;
  87.     STDMETHOD(GetInPlaceContext)(THIS_ LPOLEINPLACEFRAME*,LPOLEINPLACEUIWINDOW*,LPOLEINPLACEFRAMEINFO) PURE;
  88.     STDMETHOD(ShowContainerUI)(THIS_ BOOL) PURE;
  89.     STDMETHOD(QueryInsertObject)(THIS_ LPCLSID,LPSTORAGE,LONG) PURE;
  90.     STDMETHOD(DeleteObject)(THIS_ LPOLEOBJECT) PURE;
  91.     STDMETHOD(QueryAcceptData) (THIS_ LPDATAOBJECT,CLIPFORMAT*,DWORD,BOOL,HGLOBAL) PURE;
  92.     STDMETHOD(ContextSensitiveHelp) (THIS_ BOOL) PURE;
  93.     STDMETHOD(GetClipboardData) (THIS_ CHARRANGE*,DWORD,LPDATAOBJECT*) PURE;
  94.     STDMETHOD(GetDragDropEffect) (THIS_ BOOL,DWORD,PDWORD) PURE;
  95.     STDMETHOD(GetContextMenu) (THIS_ WORD,LPOLEOBJECT,CHARRANGE*,HMENU*) PURE;
  96. };
  97. typedef IRichEditOleCallback FAR * LPRICHEDITOLECALLBACK;
  98. #endif
  99. #pragma pack(pop)
  100. #ifdef __cplusplus
  101. }
  102. #endif
  103. #endif
  104.