IWizMessageBoxWnd

[ 
    object, 
    uuid(6ADAE38B-7275-485E-BF58-C6222115B089), 
    dual, 
    nonextensible, 
    helpstring("IWizMessageBoxWnd Interface"), 
    pointer_default(unique) 
] 
interface IWizMessageBoxWnd : IDispatch{ 
    [id(1), helpstring("method Show")] HRESULT Show([in] BSTR bstrSettingsFileName, [in] BSTR bstrRootNodeName, [in] BSTR bstrPromptName, [in] BSTR bstrTitle, [in] BSTR bstrText, [out,retval] LONG* pnRet); 
};
 
ProgID
WizTools.WizMessageBoxWnd
C/C++头文件
WizTools.h; WizTools_i.c
 

方法 Show

显示一个消息对话框。

参数

  • [in] BSTR bstrSettingsFileName:设置文件名
  • [in] BSTR bstrRootNodeName:设置文件XML根节点
  • [in] BSTR bstrPromptName:提示名称
  • [in] BSTR bstrTitle:提示标题
  • [in] BSTR bstrText:提示文字

返回

  • [out,retval] LONG* pnRet:用户点击结果
 
该接口是可连接的,用来获得一些界面事件。
[ 
    uuid(53F77B98-4CA5-4C39-ABAD-1B552DDCB28F), 
    helpstring("_IWizBubbleWndEvents Interface") 
] 
dispinterface _IWizBubbleWndEvents 
{ 
    properties: 
    methods: 
        [id(1), helpstring("method OnButtonClick")] HRESULT OnButtonClick([in] LONG nButtonIndex); 
        [id(2), helpstring("method OnButtonCloseClick")] HRESULT OnButtonCloseClick(void); 
        [id(3), helpstring("method OnTextClick")] HRESULT OnTextClick(void); 
        [id(4), helpstring("method OnShow")] HRESULT OnShow(void); 
        [id(5), helpstring("method OnHide")] HRESULT OnHide([in] LONG nReason); 
};