IFileSaveDialog::SetFileTypeIndex Method
Sets the file type that appears as selected in the dialog.
Syntax
HRESULT SetFileTypeIndex( UINT iFileType );
Parameters
iFileType
[in] The index of the file type in the file type array passed to IFileDialog::SetFileTypes in its cFileTypes parameter.Note This is a one-based index, not zero-based.
Return Value
Returns S_OK if successful, or an error value otherwise.