IRichEditOle::ImportDataObject

Imports a clipboard object into a rich edit control, replacing the current selection.

HRESULT ImportDataObject(
  LPDATAOBJECT lpdataobj,  
  CLIPFORMAT cf,           
  HGLOBAL hMetaPict        
);
 

Parameters

lpdataobj
Pointer to a DATAOBJECT structure specifying the clipboard object to import.
cf
Clipboard format to use or zero to use the best available format.
hMetaPict
Handle to a metafile containing the icon view of an object. Used only if the DVASPECT_ICON display aspect is required by Paste Special command.

Return Values

Returns success status.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richole.h.

See Also

Rich Edit Controls Overview, Rich Edit OLE Interfaces, IRichEditOle