home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class COleDataSource

CObject
   |
   +--CCmdTarget
         |
         +--COleDataSource

   in AFXOLE.H
Direct Known Subclasses:
COleControl::CControlDataSource, COleServerItem::CItemDataSource

class COleDataSource
extends CCmdTarget


Field Summary
protected UINT m_nGrowBy
          
protected UINT m_nMaxSize
          
protected UINT m_nSize
          
protected AFX_DATACACHE_ENTRY* m_pDataCache
          
   
Fields inherited from class CCmdTarget
messageMap, commandMap, dispatchMap, connectionMap, interfaceMap, eventsinkMap, m_dwRef, m_pOuterUnknown, m_xInnerUnknown, m_xDispatch, m_bResultExpected, m_xConnPtContainer
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
COleDataSource()
          
virtual ~COleDataSource()
          
 
Method Summary
 void CacheData( CLIPFORMAT cfFormat, LPSTGMEDIUM lpStgMedium, LPFORMATETC lpFormatEtc = NULL )
          
 void CacheGlobalData( CLIPFORMAT cfFormat, HGLOBAL hGlobal, LPFORMATETC lpFormatEtc = NULL )
          
 void DelayRenderData( CLIPFORMAT cfFormat, LPFORMATETC lpFormatEtc = NULL )
          
 void DelayRenderFileData( CLIPFORMAT cfFormat, LPFORMATETC lpFormatEtc = NULL )
          
 void DelaySetData( CLIPFORMAT cfFormat, LPFORMATETC lpFormatEtc = NULL )
          
 DROPEFFECT DoDragDrop( DWORD dwEffects = DROPEFFECT_COPY| DROPEFFECT_MOVE| DROPEFFECT_LINK, LPCRECT lpRectStartDrag = NULL, COleDropSource* pDropSource = NULL )
          
 void Empty()
          
 static void PASCAL FlushClipboard()
          
protected AFX_DATACACHE_ENTRY* GetCacheEntry( LPFORMATETC lpFormatEtc, DATADIR nDataDir )
          
 static COleDataSource* PASCAL GetClipboardOwner()
          
protected AFX_DATACACHE_ENTRY* Lookup( LPFORMATETC lpFormatEtc, DATADIR nDataDir ) const
          
 virtual BOOL OnRenderData( LPFORMATETC lpFormatEtc, LPSTGMEDIUM lpStgMedium )
          
 virtual BOOL OnRenderFileData( LPFORMATETC lpFormatEtc, CFile* pFile )
          
 virtual BOOL OnRenderGlobalData( LPFORMATETC lpFormatEtc, HGLOBAL* phGlobal )
          
 virtual BOOL OnSetData( LPFORMATETC lpFormatEtc, LPSTGMEDIUM lpStgMedium, BOOL bRelease )
          
 void SetClipboard()
          
   
Methods inherited from class CCmdTarget
GetIDispatch, FromIDispatch, IsResultExpected, EnableAutomation, EnableConnections, BeginWaitCursor, EndWaitCursor, RestoreWaitCursor, EnumOleVerbs, DoOleVerb, OnCmdMsg, OnFinalRelease, IsInvokeAllowed, EnableTypeLib, GetTypeInfoOfGuid, GetDispatchIID, GetTypeInfoCount, GetTypeLibCache, GetTypeLib, GetNotSupported, SetNotSupported, GetRoutingView, GetRoutingFrame, GetRoutingView_, GetRoutingFrame_, GetMessageMap, GetCommandMap, GetDispatchMap, GetConnectionMap, GetInterfaceMap, GetEventSinkMap, EnableAggregation, ExternalDisconnect, GetControllingUnknown, InternalQueryInterface, InternalAddRef, InternalRelease, ExternalQueryInterface, ExternalAddRef, ExternalRelease, GetInterface, QueryAggregates, OnCreateAggregates, GetInterfaceHook, GetStandardProp, SetStandardProp, GetEntryCount, GetDispEntry, MemberIDFromName, GetStackSize, PushStackArgs, CallMemberFunc, OnEvent, GetEventSinkEntry, GetExtraConnectionPoints, GetConnectionHook
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Field Detail

m_nGrowBy

protected UINT m_nGrowBy;

m_nMaxSize

protected UINT m_nMaxSize;

m_nSize

protected UINT m_nSize;

m_pDataCache

protected AFX_DATACACHE_ENTRY* m_pDataCache;


Constructor Detail

COleDataSource

public COleDataSource();

~COleDataSource

public virtual ~COleDataSource();


Method Detail

CacheData

public void CacheData( CLIPFORMAT cfFormat, LPSTGMEDIUM lpStgMedium, LPFORMATETC lpFormatEtc = NULL );

CacheGlobalData

public void CacheGlobalData( CLIPFORMAT cfFormat, HGLOBAL hGlobal, LPFORMATETC lpFormatEtc = NULL );

DelayRenderData

public void DelayRenderData( CLIPFORMAT cfFormat, LPFORMATETC lpFormatEtc = NULL );

DelayRenderFileData

public void DelayRenderFileData( CLIPFORMAT cfFormat, LPFORMATETC lpFormatEtc = NULL );

DelaySetData

public void DelaySetData( CLIPFORMAT cfFormat, LPFORMATETC lpFormatEtc = NULL );

DoDragDrop

public DROPEFFECT DoDragDrop( DWORD dwEffects = DROPEFFECT_COPY| DROPEFFECT_MOVE| DROPEFFECT_LINK, LPCRECT lpRectStartDrag = NULL, COleDropSource* pDropSource = NULL );

Empty

public void Empty();

FlushClipboard

public static void PASCAL FlushClipboard();

GetCacheEntry

protected AFX_DATACACHE_ENTRY* GetCacheEntry( LPFORMATETC lpFormatEtc, DATADIR nDataDir );

GetClipboardOwner

public static COleDataSource* PASCAL GetClipboardOwner();

Lookup

protected AFX_DATACACHE_ENTRY* Lookup( LPFORMATETC lpFormatEtc, DATADIR nDataDir ) const;

OnRenderData

public virtual BOOL OnRenderData( LPFORMATETC lpFormatEtc, LPSTGMEDIUM lpStgMedium );

OnRenderFileData

public virtual BOOL OnRenderFileData( LPFORMATETC lpFormatEtc, CFile* pFile );

OnRenderGlobalData

public virtual BOOL OnRenderGlobalData( LPFORMATETC lpFormatEtc, HGLOBAL* phGlobal );

OnSetData

public virtual BOOL OnSetData( LPFORMATETC lpFormatEtc, LPSTGMEDIUM lpStgMedium, BOOL bRelease );

SetClipboard

public void SetClipboard();

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD