IRichEditOle::GetClipboardData method

Retrieves a clipboard object for a range in an edit control.

Syntax


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

Parameters

lpchrg

Type: CHARRANGE*

The range for which to create the clipboard object.

reco

Type: DWORD

Unused.

lplpdataobj

Type: LPDATAOBJECT*

The IDataObject interface of the clipboard object representing the range specified in the lpchrg parameter.

Return value

Type: HRESULT

Returns S_OK on success. If the method fails, it can return one of the following values.

Return codeDescription
E_INVALIDARG

There was an invalid argument.

E_OUTOFMEMORY

There was not enough memory to do the operation.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Richole.h

DLL

Msftedit.dll

See also

Reference
CHARRANGE
IRichEditOle

 

 

Show: