#NoTrayIcon
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GuiImageList.au3>
#include <GuiButton.au3>
#include <ListViewConstants.au3>
#include <EditConstants.au3>
#include <GuiListView.au3>
$Form1 = GUICreate("工具", 688, 201, -1, -1)
$Pic1 = GUICtrlCreatePic(@TempDir & "\banner.jpg", 0, 0, 687, 93)
$Button1 = GUICtrlCreateButton("待添加", 300, 109, 75, 75)
_GUICtrlButton_SetImageList($Button1, _GetImageListHandle("shell32.dll", -20, True), 2, -1, 12)
$Button2 = GUICtrlCreateButton("查询", 400, 109, 75, 75)
_GUICtrlButton_SetImageList($Button2, _GetImageListHandle("shell32.dll", -279, True), 2, -1, 12)
$Button3 = GUICtrlCreateButton("待添加", 500, 109, 75, 75)
_GUICtrlButton_SetImageList($Button3, _GetImageListHandle("shell32.dll", -258, True), 2, -1, 12)
$Button4 = GUICtrlCreateButton("待添加", 600, 109, 75, 75)
_GUICtrlButton_SetImageList($Button4, _GetImageListHandle("shell32.dll", -27, True), 2, -1, 12)
$Label1 = GUICtrlCreateLabel(" ★ 说明事项:" & @LF & "" & @LF & " ★ 待添加!" & @LF & "" & @LF & " ★ 待添加!", 0, 112, 250, 65)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox(0,"提示","还没东西呢")
Case $Button2
$dir = @ScriptDir & "\config.ini"
$Form2 = GUICreate("查询", 687, 480)
$Pic2 = GUICtrlCreatePic(@TempDir & "\banner.jpg", 0, 0, 687, 93)
$ListView1 = GUICtrlCreateListView(" 1111 | 2222 | 3333 | 4444 | 5555 ", 10, 100, 668, 320)
$Label2 = GUICtrlCreateLabel(" ★ 请输入需要查询的内容:", 60, 440, 200, 25)
$Input2 = GUICtrlCreateInput("", 256, 435, 300, 21)
$Button21 = GUICtrlCreateButton("开始查询", 576, 432, 100, 23)
GUISetState(@SW_SHOW, $Form2)
Read()
While 1
$Msg_about = GUIGetMsg()
Select
Case $Msg_about = $GUI_EVENT_CLOSE
GUIDelete($Form2)
ExitLoop
EndSelect
WEnd
Case $Button3
MsgBox(0,"提示","还没东西呢")
Case $Button4
MsgBox(0,"提示","还没东西呢")
EndSwitch
WEnd
Func Read()
Dim $var = IniReadSection($dir, "config"), $item[1], $i
For $i = 1 To $var[0][0]
$item[$i - 1] = GUICtrlCreateListViewItem($var[$i][0] & '|' & $var[$i][1], $ListView1)
ReDim $item[$i + 1]
Next
EndFunc ;==>Read
Func _GetImageListHandle($sFile, $nIconID = 0, $fLarge = False)
Local $iSize = 16
If $fLarge Then $iSize = 32
Local $hImage = _GUIImageList_Create($iSize, $iSize, 5, 3)
If StringUpper(StringMid($sFile, StringLen($sFile) - 2)) = "BMP" Then
_GUIImageList_AddBitmap($hImage, $sFile)
Else
_GUIImageList_AddIcon($hImage, $sFile, $nIconID, $fLarge)
EndIf
Return $hImage
EndFunc ;==>_GetImageListHandle
还请各位多多帮忙,代码都是拼凑出来的,初学au3,还望多多指点