Share via


COleServerItem::GetClipboardData

Call this function to fill the specified COleDataSource object with all the data that would be copied to the Clipboard if you called CopyToClipboard (the same data would also be transferred if you called DoDragDrop).

void GetClipboardData( 
   COleDataSource* pDataSource, 
   BOOL bIncludeLink = FALSE, 
   LPPOINT lpOffset = NULL, 
   LPSIZE lpSize = NULL  
);

Parameters

  • pDataSource
    Pointer to the COleDataSource object that will receive the OLE item's data in all supported formats.

  • bIncludeLink
    TRUE if link data should be copied to the Clipboard. FALSE if your server application does not support links.

  • lpOffset
    The offset, in pixels, of the mouse cursor from the origin of the object.

  • lpSize
    The size of the object in pixels.

Remarks

This function calls the GetEmbedSourceData member function to get the native data for the OLE item and calls the AddOtherClipboardData member function to get the presentation format and any supported conversion formats. If bIncludeLink is TRUE, the function also calls GetLinkSourceData to get the link data for the item.

Override this function if you want to put formats in a COleDataSource object before or after those formats supplied by CopyToClipboard.

Requirements

Header: afxole.h

See Also

Reference

COleServerItem Class

Hierarchy Chart

COleDataSource Class

COleServerItem::AddOtherClipboardData

COleServerItem::CopyToClipboard

COleServerItem::DoDragDrop

COleServerItem::GetEmbedSourceData

COleServerItem::GetLinkSourceData