IRichEditOleCallback::QueryInsertObject method

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


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

Parameters

lpclsid

Type: LPCLSID

Class identifier of the object to be inserted.

lpstg

Type: LPSTORAGE

Storage containing the object.

cp

Type: LONG

Character position, at which the object will be inserted.

Return value

Type: HRESULT

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.

Return codeDescription
E_INVALIDARG

There was an invalid argument.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Richole.h

DLL

Msftedit.dll

See also

IRichEditOleCallback

 

 

Show: