COleDataObject::GetNextFormat

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

BOOL GetNextFormat( 
   LPFORMATETC lpFormatEtc  
);

Parameters

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

Return Value

Nonzero if another format is available; otherwise 0.

Remarks

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 Windows SDK.

Requirements

Header: afxole.h

See Also

Reference

COleDataObject Class

Hierarchy Chart

COleDataObject::BeginEnumFormats

COleDataObject::GetData

COleDataObject::GetFileData

COleDataObject::GetGlobalData