IFileDialogEvents interface (shobjidl_core.h)

Exposes methods that allow notification of events within a common file dialog.

Inheritance

The IFileDialogEvents interface inherits from the IUnknown interface. IFileDialogEvents also has these types of members:

Methods

The IFileDialogEvents interface has these methods.

 
IFileDialogEvents::OnFileOk

Called just before the dialog is about to return with a result.
IFileDialogEvents::OnFolderChange

Called when the user navigates to a new folder.
IFileDialogEvents::OnFolderChanging

Called before IFileDialogEvents::OnFolderChange. This allows the implementer to stop navigation to a particular location.
IFileDialogEvents::OnOverwrite

Called from the save dialog when the user chooses to overwrite a file.
IFileDialogEvents::OnSelectionChange

Called when the user changes the selection in the dialog's view.
IFileDialogEvents::OnShareViolation

Enables an application to respond to sharing violations that arise from Open or Save operations.
IFileDialogEvents::OnTypeChange

Called when the dialog is opened to notify the application of the initial chosen filetype.

Remarks

When to Implement

IFileDialogEvents is implemented by an application that is a client of the common file dialog browser. Methods that are not implemented should return E_NOTIMPL. An example of IFileDialogEvents can be found in the Common File Dialog SDK sample.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)