显示 Windows 的 "关于" 对话框.
#Include <WinAPIEx.au3>
_WinAPI_AboutDlg ( $sTitle, $sName, $sText [, $hIcon [, $hParent]] )
| $sTitle | 对话框标题. |
| $sName | 显示在对话框第一行 "Microsoft" 后面的文本 |
| $sText | 显示在对话框中版权和授权信息之间的文本. |
| $hIcon | [可选参数] 对话框的图标句柄. |
| $hParent | [可选参数] 父窗口句柄. |
| 成功: | 返回 返回 1. |
| 失败: | 返回 0,设置@error标志为非 0 值. |
在MSDN中搜索
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $hForm, $Msg, $Button
$hForm = GUICreate('MyGUI', 400, 400)
$Button = GUICtrlCreateButton('About', 165, 366, 70, 23)
GUISetState()
While 1
$Msg = GUIGetMsg()
Switch $Msg
Case -3
ExitLoop
Case $Button
_WinAPI_AboutDlg('About', 'About Dialog Box Test', 'Simple Text', _WinAPI_ShellExtractIcon(@AutoItExe, 0, 32, 32), $hForm)
EndSwitch
WEnd