DXFEROBJ.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- //**********************************************************************
- // File name: dxferobj.h
- //
- // Definition of CDataXferObj
- //
- // Copyright (c) 1993-1997 Microsoft Corporation. All rights reserved.
- //**********************************************************************
- #if !defined( _DATAXFEROBJ_H_)
- #define _DATAXFEROBJ_H_
- class CSimpleSite;
- interface CDataObject;
- class CDataXferObj : public IDataObject
- {
- private:
- int m_nCount; // reference count
- SIZEL m_sizel;
- POINTL m_pointl;
- LPSTORAGE m_lpObjStorage;
- LPOLEOBJECT m_lpOleObject;
- // construction/destruction
- CDataXferObj();
- ~CDataXferObj();
- public:
- STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
- STDMETHODIMP_(ULONG) AddRef ();
- STDMETHODIMP_(ULONG) Release ();
- STDMETHODIMP DAdvise ( FORMATETC FAR* pFormatetc, DWORD advf,
- LPADVISESINK pAdvSink, DWORD FAR* pdwConnection)
- { return ResultFromScode(OLE_E_ADVISENOTSUPPORTED); }
- STDMETHODIMP DUnadvise ( DWORD dwConnection)
- { return ResultFromScode(OLE_E_ADVISENOTSUPPORTED); }
- STDMETHODIMP EnumDAdvise ( LPENUMSTATDATA FAR* ppenumAdvise)
- { return ResultFromScode(OLE_E_ADVISENOTSUPPORTED); }
- STDMETHODIMP EnumFormatEtc ( DWORD dwDirection,
- LPENUMFORMATETC FAR* ppenumFormatEtc);
- STDMETHODIMP GetCanonicalFormatEtc ( LPFORMATETC pformatetc,
- LPFORMATETC pformatetcOut)
- { pformatetcOut->ptd = NULL; return ResultFromScode(E_NOTIMPL); }
- STDMETHODIMP GetData (LPFORMATETC pformatetcIn, LPSTGMEDIUM pmedium );
- STDMETHODIMP GetDataHere (LPFORMATETC pformatetc, LPSTGMEDIUM pmedium);
- STDMETHODIMP QueryGetData (LPFORMATETC pformatetc );
- STDMETHODIMP SetData (LPFORMATETC pformatetc, STGMEDIUM FAR * pmedium,
- BOOL fRelease)
- { return ResultFromScode(E_NOTIMPL); }
- static CDataXferObj FAR* Create(CSimpleSite FAR* lpSite,
- POINTL FAR* pPointl);
- };
- #endif // _DATAXFEROBJ_H_