fuldho 发表于 2012-1-9 16:03:31

把消息框改成子窗口弹出

49666684 发表于 2012-1-10 03:27:23

努力学习中,AU3真强大

netegg 发表于 2012-1-10 16:08:33

_WinAPI_MessageBoxIndirect

lxz 发表于 2012-1-10 16:30:15

图标没有更改到.

sgj584520 发表于 2012-1-10 21:23:35

学习中,刚进入角色

甲壳虫 发表于 2012-1-13 22:07:47

_WinAPI_MessageBoxIndirect
netegg 发表于 2012-1-10 16:08 http://www.autoitx.com/images/common/back.gif
确实可以。这是官网的例子:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=Arrow.ico
#AutoIt3Wrapper_Res_Icon_Add=Arrow.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

#Include <Constants.au3>
#Include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global Const $MB_USERICON = 0x80

Global Const $sTitle = 'Message'
Global Const $sText = 'This is a simple message box with a custom icon.'

Global $tMBP = DllStructCreate($tagMSGBOXPARAMS)
Global $tTitle = DllStructCreate('wchar[' & (StringLen($sTitle) + 1) & ']')
Global $tText = DllStructCreate('wchar[' & (StringLen($sText) + 1) & ']')
Global $Result

DllStructSetData($tTitle, 1, $sTitle)
DllStructSetData($tText, 1, $sText)
DllStructSetData($tMBP, 'Size', DllStructGetSize($tMBP))
DllStructSetData($tMBP, 'hOwner', 0)
DllStructSetData($tMBP, 'hInstance', _WinAPI_GetModuleHandle(0))
DllStructSetData($tMBP, 'Text', DllStructGetPtr($tText))
DllStructSetData($tMBP, 'Caption', DllStructGetPtr($tTitle))
DllStructSetData($tMBP, 'Style', BitOR($MB_OKCANCEL, $MB_USERICON))
DllStructSetData($tMBP, 'Icon', 201)
DllStructSetData($tMBP, 'ContextHelpId', 0)
DllStructSetData($tMBP, 'MsgBoxCallback', 0)
DllStructSetData($tMBP, 'LanguageId', 0)

$Result = _WinAPI_MessageBoxIndirect($tMBP)

MsgBox(0, 'Result', 'Return: ' & $Result & @CR)

xcajcj 发表于 2012-1-14 08:42:22

学习了 自定义对话框

jonyzhr 发表于 2012-1-14 16:55:16

正在学习当中,强大。
页: 1 [2]
查看完整版本: 消息提示框图标如何自定义???