Metodo ITextStoreAnchor::QueryInsertEmbedded (textstor.h)

Determina se il documento può accettare un oggetto incorporato tramite i metodi InsertEmbedded o InsertEmbeddedAtSelection.

Sintassi

HRESULT QueryInsertEmbedded(
  [in]  const GUID      *pguidService,
  [in]  const FORMATETC *pFormatEtc,
  [out] BOOL            *pfInsertable
);

Parametri

[in] pguidService

Puntatore al tipo di oggetto. Se NULL, è necessario usare pFormatEtc .

[in] pFormatEtc

Puntatore alla struttura FORMATETC che contiene i dati di formato dell'oggetto. Questo parametro non può essere NULL se il parametro pguidService è NULL.

[out] pfInsertable

Riceve TRUE se il tipo di oggetto può essere inserito nel documento o FALSE se il tipo di oggetto non può essere inserito nel documento.

Valore restituito

Questo metodo può restituire uno di questi valori.

Valore Descrizione
S_OK
Il metodo è stato eseguito correttamente.
E_INVALIDARG
Il parametro pFormatEtc è NULL.

Commenti

I formati degli Appunti supportati dal documento dipendono dall'applicazione.

Requisiti

Requisito Valore
Client minimo supportato Windows 2000 Professional [app desktop | App UWP]
Server minimo supportato Windows 2000 Server [app desktop | App UWP]
Piattaforma di destinazione Windows
Intestazione textstor.h
DLL Msctf.dll
Componente ridistribuibile TSF 1.0 in Windows 2000 Professional

Vedi anche

FORMATETC

ITextStoreAnchor

ITextStoreAnchor::InsertEmbedded

ITextStoreAnchor::InsertEmbeddedAtSelection