Tools
ud1096.asc
Associated article: Undocumented Corner
Tags: Tools
Published source code accompanying the Undocumented Corner column by Scot Wingo and George Shepherd Understanding how drag-and-drop works at the Common Object Model (COM) level and how MFC implements drag-and-drop illustrates the power of COM, underscoring the kinds of things you can do by programming in COM.
_Undocumented Corner_
by George Shepherd and Scot Wingo
Listing One
interface IDataObject : IUnknown {
virtual HRESULT GetData(FORMATETC* pformatetc, STGMEDIUM* pmedium) = 0;
virtual HRESULT GetDataHere(FORMATETC* pformatetc,STGMEDIUM* pmedium) = 0;
virtual HRESULT QueryGetData(FORMATETC* pformatetc) = 0;
virtual HRESULT GetCanonicalFormatEtc(FORMATETC* pformatetcIn,
FORMATETC* pformatetcOut) = 0;
virtual ...


