IVsThreadedWaitDialog4.StartWaitDialogEx Method

Definition

Determines whether StartWaitDialog(Ex) has actually started a dialog.If StartWaitDialog (or StartWaitDialogEx) is called multiple times without calling EndWaitDialog, only the first will start the dialog. Subsequent calls will just be no-ops. This makes it difficult to determine how often a call site caused the dialog to show. pfStarted will be set to true if the call to StartWaitDialogEx started the wait dialog (or started the timer to show the dialog).

C#
public bool StartWaitDialogEx(string szWaitCaption, string szWaitMessage, string szProgressText, object varStatusBmpAnim, string szStatusBarText, int iDelayToShowDialog, bool fIsCancelable, bool fShowMarqueeProgress);

Parameters

szWaitCaption
String

The wait dialog caption

szWaitMessage
String

The wait message.

szProgressText
String

The progress text.

varStatusBmpAnim
Object

Optional. Should be a VT_INT_PTR containing a valid BMP, or VT_NULL.

szStatusBarText
String

The status bar text. Can be NULL.

iDelayToShowDialog
Int32

The number of seconds to delay showing the dialog.

fIsCancelable
Boolean

True if there is a cancelable button on the dialog, otherwise false.

fShowMarqueeProgress
Boolean

Marquee-style progress will be shown with VARIANT_BOOL, otherwise no visible progress bar.

Returns

True if the dialog was actually displayed, or false if it was already visible.

Remarks

This method is safe to access from any thread.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022