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.

See Also

IRichEditOleCallback