Starts the specified progress dialog.
HRESULT StartProgressDialog( HWND hwndOwner, OPPROGDLGF flags );
A handle to the parent window.
Flags that customize the operation. Note that these flags are declared in Shlobj.h. A combination of the following values:
Default, normal progress dialog behavior.
The dialog is modal to its hwndOwner. The default setting is modeless.
Update "Line3" text with the time remaining. This flag does not need to be implicitly set because progress dialogs started by IOperationsProgressDialog::StartProgressDialog automatically display the time remaining.
Do not show the time remaining. We do not recommend setting this flag through IOperationsProgressDialog because it goes against the purpose of the dialog.
Do not display the minimize button.
Do not display the progress bar.
This flag is invalid in this method. To set the progress bar to marquee mode, use the flags in IOperationsProgressDialog::SetMode.
Do not display a cancel button because the operation cannot be canceled. Use this value only when absolutely necessary.
Windows 7 and later. Indicates default, normal operation progress dialog behavior.
Display a pause button. Use this only in situations where the operation can be paused.
The operation can be undone through the dialog. The Stop button becomes Undo. If pressed, the Undo button then reverts to Stop.
Do not display the path of source file in the progress dialog.
Do not display the path of the destination file in the progress dialog.
Windows 7 and later. If the estimated time to completion is greater than one day, do not display the time.
Windows 7 and later. Do not display the location line in the progress dialog.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
The progress dialog should be created on a separate thread than the file operation on which the dialog is reporting. If the dialog is running in the same thread as the file operation, progress messages are, at best, only sent as resources allow. Progress messages on the same thread as the file operation might not be sent at all.
Once IOperationsProgressDialog::StartProgressDialog is called, that instance of the CLSID_ProgressDialog object cannot be accessed by IProgressDialog, IActionProgressDialog, or IActionProgress. Although QueryInterface can be used to access these interfaces, most of their methods cannot be invoked. IOperationsProgressDialog is the interface used to display the new progress dialog for the Windows Vista and later operations engine.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|
|Header||shobjidl_core.h (include Shobjidl.h)|