IRichEditOleCallback::GetClipboardData method (richole.h)

Allows the client to supply its own clipboard object.

Syntax

HRESULT GetClipboardData(
  CHARRANGE    *lpchrg,
  DWORD        reco,
  LPDATAOBJECT *lplpdataobj
);

Parameters

lpchrg

Type: CHARRANGE*

The clipboard object range.

reco

Type: DWORD

The clipboard operation flag can be one of these values.

Value Meaning
RECO_COPY
Copy to the clipboard.
RECO_CUT
Cut to the clipboard.

lplpdataobj

Type: LPDATAOBJECT*

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

Return value

Type: HRESULT

Returns S_OK on success. If the return value is E_NOTIMPL, the rich edit control created its own clipboard object. If the return value is a failure other than E_NOTIMPL, the operation failed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header richole.h
DLL Msftedit.dll

See also

CHARRANGE

IRichEditOleCallback

Reference