IVsThreadedWaitDialog2.UpdateProgress 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
更新 "等待" 对话框中的进度。
public:
int UpdateProgress(System::String ^ szUpdatedWaitMessage, System::String ^ szProgressText, System::String ^ szStatusBarText, int iCurrentStep, int iTotalSteps, bool fDisableCancel, [Runtime::InteropServices::Out] bool % pfCanceled);
int UpdateProgress(std::wstring const & szUpdatedWaitMessage, std::wstring const & szProgressText, std::wstring const & szStatusBarText, int iCurrentStep, int iTotalSteps, bool fDisableCancel, [Runtime::InteropServices::Out] bool & pfCanceled);
public int UpdateProgress (string szUpdatedWaitMessage, string szProgressText, string szStatusBarText, int iCurrentStep, int iTotalSteps, bool fDisableCancel, out bool pfCanceled);
abstract member UpdateProgress : string * string * string * int * int * bool * -> int
Public Function UpdateProgress (szUpdatedWaitMessage As String, szProgressText As String, szStatusBarText As String, iCurrentStep As Integer, iTotalSteps As Integer, fDisableCancel As Boolean, ByRef pfCanceled As Boolean) As Integer
参数
- szUpdatedWaitMessage
- String
更新的等待消息。 可以为 null。
- szProgressText
- String
进度条附带的文本。 可以为 null。
- szStatusBarText
- String
状态栏文本。 可以为 null。
- iCurrentStep
- Int32
迄今为止完成的步骤数。
- iTotalSteps
- Int32
步骤总数。
- fDisableCancel
- Boolean
如果操作变为 uncancelable,则通过传递来禁用 "取消" 按钮 true 。
- pfCanceled
- Boolean
[out] true 如果操作已取消,则为。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。