tkOleDND_TEnumFormatEtc.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef _TENUMFORMATETC_H_
00017 #define _TENUMFORMATETC_H_
00018
00019 class TEnumFormatEtc;
00020 typedef class TEnumFormatEtc *PTEnumFormatEtc;
00021
00022 class TEnumFormatEtc: public IEnumFORMATETC
00023 {
00024 private:
00025 ULONG m_refCnt;
00026 LPUNKNOWN m_pUnknownObj;
00027 ULONG m_currElement;
00028 ULONG m_numFormats;
00029 LPFORMATETC m_formatList;
00030
00031 public:
00032 TEnumFormatEtc(LPUNKNOWN, ULONG, LPFORMATETC);
00033 ~TEnumFormatEtc(void);
00034
00035
00036 STDMETHODIMP QueryInterface(REFIID, LPVOID *);
00037 STDMETHODIMP_(ULONG) AddRef(void);
00038 STDMETHODIMP_(ULONG) Release(void);
00039
00040
00041 STDMETHODIMP Next(ULONG, LPFORMATETC, ULONG *);
00042 STDMETHODIMP Skip(ULONG);
00043 STDMETHODIMP Reset(void);
00044 STDMETHODIMP Clone(IEnumFORMATETC **);
00045 };
00046
00047 extern LPENUMFORMATETC
00048 CreateFormatEtcEnumerator(LPUNKNOWN, ULONG, LPFORMATETC);
00049
00050 #endif