IFileDialog interface (shobjidl_core.h)
Exposes methods that initialize, show, and get results from the common file dialog.
The IFileDialog interface inherits from IModalWindow. IFileDialog also has these types of members:
The IFileDialog interface has these methods.
Adds a folder to the list of places available for the user to open or save items.
Assigns an event handler that listens for events coming from the dialog.
Instructs the dialog to clear all persisted state information.
Closes the dialog.
Gets the user's current selection in the dialog.
Retrieves the text currently entered in the dialog's File name edit box.
Gets the currently selected file type.
Gets either the folder currently selected in the dialog, or, if the dialog is not currently displayed, the folder that is to be selected when the dialog is opened.
Gets the current flags that are set to control dialog behavior.
Gets the choice that the user made in the dialog.
Enables a calling application to associate a GUID with a dialog's persisted state.
Sets the default extension to be added to file names.
Sets the folder used as a default if there is not a recently used folder value available.
Sets the file name that appears in the File name edit box when that dialog box is opened.
Sets the text of the label next to the file name edit box.
Sets the file type that appears as selected in the dialog.
Sets the file types that the dialog can open or save.
SetFilter is no longer available for use as of Windows 7.
Sets a folder that is always selected when the dialog is opened, regardless of previous user action.
Sets the text of the Open or Save button.
Sets flags to control the behavior of the dialog.
Sets the title of the dialog.
Removes an event handler that was attached through the IFileDialog::Advise method.
When to ImplementIFileDialog is implemented by the common file open dialog (CLSID_FileOpenDialog) and file save dialog (CLSID_FileSaveDialog).
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|