IRichEditOle::GetClipboardData method (richole.h)
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 code | Description |
---|---|
|
There was an invalid argument. |
|
There was not enough memory to do the operation. |
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
Reference