Export (0) Print
Expand All

IRichEditOleCallback::GetClipboardData method

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.

ValueMeaning
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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Richole.h

DLL

Msftedit.dll

See also

Reference
CHARRANGE
IRichEditOleCallback

 

 

Community Additions

ADD
Show:
© 2014 Microsoft