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).
Syntax
FUNCTION QueryInsertObject (BYVAL lpclsid AS LPCLSID, BYVAL lpstg AS LPSTORAGE, BYVAL cp AS LONG) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
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 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