IFileDialog::SetFileTypeIndex method
Sets the file type that appears as selected in the dialog.
HRESULT SetFileTypeIndex(
[in] UINT iFileType
);
iFileType [in]
Type: UINTThe index of the file type in the file type array passed to IFileDialog::SetFileTypes in its cFileTypes parameter. Note that this is a one-based index, not zero-based.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
This method must be called before the dialog is showing.
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
Shobjidl.h |
IDL |
Shobjidl.idl |