Help Center

CRichEditOleCallback.GetClipboardDatamethod

Allows the client to supply its own clipboard object.

Windowsmethoddocumented

Syntax

FUNCTION GetClipboardData (BYVAL lpchrg AS CHARRANGE PTR, BYVAL reco AS DWORD, BYVAL lplpdataobj AS LPDATAOBJECT PTR) AS HRESULT

Parameters

NameDescription
lpchrgThe clipboard object range.
recoThe clipboard operation flag can be one of these values.
ECO_COPY. Copy to the clipboard.
RECO_CUT. Cut to the clipboard.
lplpdataobjPointer 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

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.

Description

Allows the client to supply its own clipboard object.

Reference

  • Defined in AfxNova/CRichEditOleCallback.inc:38
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditOleCallback Class.md
  • Topic: CRichEditOleCallback Class