IFileDialog::SetFileTypeIndex method
Sets the file type that appears as selected in the dialog.
Syntax
HRESULT SetFileTypeIndex(
[in] UINT iFileType
);
Parameters
- iFileType [in]
-
Type: UINT
The 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.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method must be called before the dialog is showing.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
Show: