Freigeben über


COleClientItem::OnGetClipboardData

Called by the framework to get a COleDataSource object containing all the data that would be placed on the Clipboard by a call to either the CopyToClipboard or the DoDragDrop member function.

virtual COleDataSource* OnGetClipboardData(
   BOOL bIncludeLink,
   LPPOINT lpOffset,
   LPSIZE lpSize 
);

Parameters

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

  • lpOffset
    Pointer to the offset of the mouse cursor from the origin of the object in pixels.

  • lpSize
    Pointer to the size of the object in pixels.

Return Value

A pointer to a COleDataSource object containing the Clipboard data.

Remarks

The default implementation of this function calls GetClipboardData.

Requirements

Header: afxole.h

See Also

Concepts

COleClientItem Class

COleClientItem Members

Hierarchy Chart

COleDataSource Class

COleClientItem::CopyToClipboard

COleClientItem::GetClipboardData

COleDataSource::SetClipboard