IWizProgressWnd

[ 
    object, 
    uuid(2D2713E8-C80B-44D6-BF85-216E19563A5C), 
    dual, 
    nonextensible, 
    helpstring("IWizProgressWnd Interface"), 
    pointer_default(unique) 
] 
interface IWizProgressWnd : IDispatch{ 
    [propput, id(1), helpstring("property Title")] HRESULT Title([in] BSTR newVal); 
    [id(2), helpstring("method Show")] HRESULT Show(void); 
    [id(3), helpstring("method Hide")] HRESULT Hide(void); 
    [id(4), helpstring("method SetText")] HRESULT SetText([in] BSTR bstrText); 
    [id(5), helpstring("method SetIcon")] HRESULT SetIcon([in] OLE_HANDLE hIcon); 
    [id(6), helpstring("method InitProgress")] HRESULT InitProgress([in] LONG nMin, [in] LONG nMax); 
    [id(7), helpstring("method SetProgress")] HRESULT SetProgress([in] LONG nPos); 
    [id(8), helpstring("method IsCanceled")] HRESULT IsCanceled(void); 
};
 
ProgID
WizTools.WizProgressWnd
C/C++头文件
WizTools.h; WizTools_i.c
 

属性 Title

窗口标题

参数

类型

  • put: [in] BSTR newVal:设置标题

方法 Show

显示窗口

参数

返回

方法 Hide

隐藏窗口

参数

返回

方法 SetText

设置描述文字

参数

  • [in] BSTR bstrText:文字

返回

方法 SetIcon

设置窗口图标

参数

  • [in] OLE_HANDLE hIcon:设置窗口显示的图标 (HICON)

返回

方法 InitProgress

初始化进度条

参数

  • [in] LONG nMin:最小值
  • [in] LONG nMax:最大值

返回

方法 SetProgress

设置进度条

参数

  • [in] LONG nPos:当前值

返回

方法 IsCanceled

检测用户是否取消了。C++用户通过返回值判断(S_OK/S_FALSE)

参数

返回