IRichEditOle::ImportDataObject method (richole.h)
Imports a clipboard object into a rich edit control, replacing the current selection.
Syntax
HRESULT ImportDataObject(
LPDATAOBJECT lpdataobj,
CLIPFORMAT cf,
HGLOBAL hMetaPict
);
Parameters
lpdataobj
Type: LPDATAOBJECT
The clipboard object to import.
cf
Type: CLIPFORMAT
Clipboard format to use. A value of zero will use the best available format.
hMetaPict
Type: HGLOBAL
Handle to a metafile containing the icon view of an object. The handle is used only if the DVASPECT_ICON display aspect is required by a Paste Special operation.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for