COleDataObject::GetNextFormat

BOOL GetNextFormat( LPFORMATETC lpFormatEtc );

Return Value

Nonzero if another format is available; otherwise 0.

Parameters

lpFormatEtc

Points to the FORMATETC structure that receives the format information when the function call returns.

Remarks

Call this function repeatedly to obtain all the formats available for retrieving data from the item.

After a call to COleDataObject::BeginEnumFormats, the position of the first format supported by this data object is stored. Successive calls to GetNextFormat will enumerate the list of available formats in the data object. Use these functions to list the available formats.

To check for the availability of a given format, call COleDataObject::IsDataAvailable.

For more information, see IEnumXXXX::Next in the OLE 2 Programmer's Reference, Volume 1.

COleDataObject OverviewClass MembersHierarchy Chart

See Also   COleDataObject::BeginEnumFormats, COleDataObject::GetData, COleDataObject::GetFileData, COleDataObject::GetGlobalData