IRichEditOleCallback::GetClipboardData

Allows the client to supply its own clipboard object.

HRESULT GetClipboardData(

CHARRANGE FAR * lpchrg,  
DWORD reco,  
LPDATAOBJECT FAR * lplpdataobj  
);  

Parameters

lpchrg

Pointer to the CHARRANGE structure specifying the range the clipboard object is for.

reco

Clipboard operation flag. Can be one of these values.

RECO_COPY Copy to the clipboard.
RECO_CUT Cut to the clipboard.
RECO_DRAG Drag operation (drag and drop)
RECO_DROP Drop operation (drag and drop).
RECO_PASTE Paste from the clipboard.

lplpdataobj

Pointer to the pointer variable that receives the address of the IDataObject implementation representing the range specified in the lpchrg parameter. The value of lppdataobj is ignored if an error is returned.

Return Values

Returns success status. If the SCODE of the return value is E_NOTIMPL, the rich edit control creates its own clipboard object. If the SCODE of the return value is a failure other than E_NOTIMPL the operation fails.

See Also

CHARRANGE, IDataObject, IRichEditOleCallback