Freigeben über


COleServerItem::GetEmbedSourceData

Call this function to get the CF_EMBEDSOURCE data for an OLE item.

void GetEmbedSourceData( 
   LPSTGMEDIUM lpStgMedium  
);

Parameters

  • lpStgMedium
    Pointer to the STGMEDIUM structure that will receive the CF_EMBEDSOURCE data for the OLE item.

Remarks

This format includes the item's native data. You must have implemented the Serialize member function for this function to work properly.

The result can then be added to a data source by using COleDataSource::CacheData. This function is called automatically by COleServerItem::OnGetClipboardData.

For more information, see STGMEDIUM in the Windows SDK.

Requirements

Header: afxole.h

See Also

Reference

COleServerItem Class

Hierarchy Chart

COleServerItem::GetLinkSourceData

COleServerItem::GetObjectDescriptorData

COleDataSource::CacheData

CObject::Serialize