COleDataSource::DelaySetData

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

Parameters

cfFormat

The Clipboard format in which the data is to be placed. This parameter can be one of the predefined Clipboard formats or the value returned by the native Windows RegisterClipboardFormat function.

lpFormatEtc

Points to a FORMATETC structure describing the format in which the data is to be replaced. Provide a value for this parameter if you want to specify additional format information beyond the Clipboard format specified by cfFormat. If it is NULL, default values are used for the other fields in the FORMATETC structure.

Remarks

Call this function to support changing the contents of the data source. OnSetData will be called by the framework when this happens. This is only used when the framework returns the data source from COleServerItem::GetDataSource. If DelaySetData is not called, your OnSetData function will never be called. DelaySetData should be called for each Clipboard or FORMATETC format you support.

For more information, see the FORMATETC structure in the OLE 2 Programmer’s Reference, Volume 1.

For more information, see RegisterClipboardFormat in the Win32 documentation.

COleDataSource OverviewClass MembersHierarchy Chart

See Also   COleServerItem::GetDataSource, COleDataSource::OnSetData