Поделиться через


COleServerItem::GetDataSource

Call this function to get the COleDataSource object used to store the conversion formats that the server application supports.

COleDataSource* GetDataSource( );

Return Value

A pointer to the COleDataSource object used to store the conversion formats.

Remarks

If you want your server application to offer data in a variety of formats during data transfer operations, register those formats with the COleDataSource object returned by this function. For example, if you want to supply a CF_TEXT representation of the OLE item for Clipboard or drag-and-drop operations, you would register the format with the COleDataSource object this function returns, and then override the OnRenderXxxData member function to provide the data.

Requirements

Header: afxole.h

See Also

Reference

COleServerItem Class

Hierarchy Chart

COleDataSource Class

COleDataSource::DelayRenderData

COleServerItem::CopyToClipboard

COleServerItem::DoDragDrop

COleServerItem::OnRenderData

COleServerItem::OnRenderFileData

COleServerItem::OnRenderGlobalData