Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Shobjidl.h

IDL

Shobjidl.idl

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.