IRichEditOleCallback::QueryInsertObject

Queries the application as to whether an object should be inserted. This member is called when pasting and when reading RTF.

HRESULT QueryInsertObject(
  LPCLSID lpclsid,  
  LPSTORAGE lpstg,  
  LONG cp           
);
 

Parameters

lpclsid
Class identifier of the object to be inserted.
lpstg
Storage containing the object.
cp
Character position at which the object will be inserted.

Return Values

Returns success status. If the SCODE of the result is not S_OK, the object is not inserted.

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, IRichEditOleCallback