Export (0) Print
Expand All

IFileDialogEvents interface

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

Members

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

Methods

The IFileDialogEvents interface has these methods.

MethodDescription
OnFileOk

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

OnFolderChange

Called when the user navigates to a new folder.

OnFolderChanging

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

OnOverwrite

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

OnSelectionChange

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

OnShareViolation

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

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft