Help Center

CRichEditOleCallback.QueryInsertObjectmethod

Queries the application as to whether an object should be inserted. The member is called when pasting and when reading Rich Text Format (RTF).

Windowsmethoddocumented

Syntax

FUNCTION QueryInsertObject (BYVAL lpclsid AS LPCLSID, BYVAL lpstg AS LPSTORAGE, BYVAL cp AS LONG) AS HRESULT

Parameters

NameDescription
lpclsidClass identifier of the object to be inserted.
lpstgStorage containing the object.
cpCharacter position, at which the object will be inserted.

Return value

Returns S_OK on success. If the return value is not S_OK, the object was not inserted. If the method fails, it can return the following value.

Description

Queries the application as to whether an object should be inserted. The member is called when pasting and when reading Rich Text Format (RTF).

Reference

  • Defined in AfxNova/CRichEditOleCallback.inc:34
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditOleCallback Class.md
  • Topic: CRichEditOleCallback Class