回复 10# chzj589
#AutoIt3Wrapper_icon=line.ico; zzsy.ico; C:\WINDOWS\system32\SHELL32.dll|-39.ico
#AutoIt3Wrapper_OutFile= Label模拟TAB标签.exe ;输出文件名
#AutoIt3Wrapper_Res_LegalCopyright=Copyright (c) chzj589 20180214
#AutoIt3Wrapper_OutFile_Type=exe ;文件类型
#AutoIt3Wrapper_UseX64 = n
#AutoIt3Wrapper_Compression=4 ;压缩等级
#AutoIt3Wrapper_UseUPX=y
#AutoIt3Wrapper_Res_Comment= Label模拟TAB标签 ;注释
#AutoIt3Wrapper_Res_Description=Label模拟TAB标签 ;详细信息
#AutoIt3Wrapper_Res_FileVersion=1.0.0.0
#AutoIt3Wrapper_Res_Field=ProductName|Label模拟TAB标签程序--win7-64-3.3.14.2;产品说明
#AutoIt3Wrapper_Res_Field=OriginalFilename|Label模拟TAB标签.au3
#AutoIt3Wrapper_Res_Language=2052
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GuiListView.au3>
#include <GuiImageList.au3>
#include <ListViewConstants.au3>
#include <ListBoxConstants.au3>
#include <GuiButton.au3>
#include <GuiListBox.au3>
Opt("GUIOnEventMode", 1)
Global $Form1, $PListViewa5, $plusBtn6
Local $sFilePathb1 = "YueFenh.ini"
Local $aArraya1 = IniReadSection($sFilePathb1, "IDCC")
_Form1()
While 1
Sleep(1000)
WEnd
Func _Form1()
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Label模拟TAB标签", 800, 466, -1, -1, $WS_OVERLAPPEDWINDOW)
GUISetOnEvent($GUI_EVENT_CLOSE, "btnClose")
GUISetBkColor(0xC0E0FF)
$plusBtn6 = GUICtrlCreateLabel("可在这里添加你的文件", 330, 168, 460, 40)
GUICtrlSetFont(-1, 18, 600)
GUICtrlSetColor(-1, 0xFF000F7F)
GUICtrlSetBkColor(-1, -2)
GUICtrlSetCursor(-1, 0)
$Group2 = GUICtrlCreateLabel("", 30, 10, 245, 430)
GUICtrlSetBkColor(-1, 0xC0C0C0)
GUICtrlSetColor(-1, 0xfbfcfd)
GUICtrlSetFont(-1, 11, 800, 0, "微软雅黑")
;GUICtrlSetBkColor(-1, -2)
GUICtrlSetCursor(-1, 0)
GUICtrlSetState(-1, $GUI_DISABLE)
$Label1 = GUICtrlCreateLabel(" 合同管理", 48, 30, 198, 25)
GUICtrlSetBkColor(-1, 0x990000)
GUICtrlSetColor(-1, 0xfbfcfd)
GUICtrlSetFont(-1, 11, 800, 0, "微软雅黑")
;GUICtrlSetBkColor(-1, -2)
GUICtrlSetCursor(-1, 0)
$Label2 = GUICtrlCreateLabel(" 客商管理", 48, 257, 198, 25)
GUICtrlSetBkColor(-1, 0x990000)
GUICtrlSetColor(-1, 0xfbfcfd)
GUICtrlSetFont(-1, 11, 800, 0, "微软雅黑")
;GUICtrlSetBkColor(-1, -2)
GUICtrlSetCursor(-1, 0)
$Label3 = GUICtrlCreateLabel(" 项目管理", 48, 284, 198, 25)
GUICtrlSetBkColor(-1, 0x990000)
GUICtrlSetColor(-1, 0xfbfcfd)
GUICtrlSetFont(-1, 11, 800, 0, "微软雅黑")
;GUICtrlSetBkColor(-1, -2)
GUICtrlSetCursor(-1, 0)
$Label4 = GUICtrlCreateLabel(" 货品管理", 48, 311, 198, 25)
GUICtrlSetBkColor(-1, 0x990000)
GUICtrlSetColor(-1, 0xfbfcfd)
GUICtrlSetFont(-1, 11, 800, 0, "微软雅黑")
;GUICtrlSetBkColor(-1, -2)
GUICtrlSetCursor(-1, 0)
$Label5 = GUICtrlCreateLabel(" 文档管理", 48, 338, 198, 25)
GUICtrlSetBkColor(-1, 0x990000);
GUICtrlSetColor(-1, 0xfbfcfd)
GUICtrlSetFont(-1, 11, 800, 0, "微软雅黑")
;GUICtrlSetBkColor(-1, -2)
GUICtrlSetCursor(-1, 0)
$Label6 = GUICtrlCreateLabel(" 统计汇总", 48, 365, 198, 25)
GUICtrlSetBkColor(-1, 0x990000)
GUICtrlSetColor(-1, 0xfbfcfd)
GUICtrlSetFont(-1, 11, 800, 0, "微软雅黑")
;GUICtrlSetBkColor(-1, -2)
GUICtrlSetCursor(-1, 0)
$Label7 = GUICtrlCreateLabel(" 系统设置", 48, 392, 198, 25)
GUICtrlSetBkColor(-1, 0x990000)
GUICtrlSetColor(-1, 0xfbfcfd)
GUICtrlSetFont(-1, 11, 800, 0, "微软雅黑")
;GUICtrlSetBkColor(-1, -2)
GUICtrlSetCursor(-1, 0)
$icoa1 = GUICtrlCreateIcon("", 2, 50, 33, 16, 16)
GUICtrlSetImage(-1, "shell32.dll", 6)
$ico2 = GUICtrlCreateIcon("", 2, 50, 259, 16, 16)
GUICtrlSetImage(-1, "shell32.dll", 46)
$ico3 = GUICtrlCreateIcon("", 2, 50, 286, 16, 16)
GUICtrlSetImage(-1, "shell32.dll", 137)
$ico4 = GUICtrlCreateIcon("", 2, 50, 313, 16, 16)
GUICtrlSetImage(-1, "shell32.dll", 38)
$ico5 = GUICtrlCreateIcon("", 2, 50, 340, 16, 16)
GUICtrlSetImage(-1, "shell32.dll", 146)
$ico6 = GUICtrlCreateIcon("", 2, 50, 367, 16, 16)
GUICtrlSetImage(-1, "shell32.dll", 45)
$ico7 = GUICtrlCreateIcon("", 2, 50, 394, 16, 16)
GUICtrlSetImage(-1, "shell32.dll", 168)
$PListViewa5 = GUICtrlCreateList("", 93, 55, 153, 200, $LBS_EXTENDEDSEL)
$hPListView = GUICtrlGetHandle($PListViewa5)
;GUICtrlSetLimit(-1, 200) ; 限制水平滚动
GUICtrlSetBkColor(-1, 0x990000); 背景色
GUICtrlSetColor(-1, 0xfbfcfd)
GUICtrlSetFont(-1, 10, 800, 0, 'Arial')
GUICtrlSetCursor(-1, 0)
_ddu()
GUIRegisterMsg($WM_COMMAND, "WM_COMMAND")
GUISetState(@SW_SHOW, $Form1)
#EndRegion ### END Koda GUI section ###
EndFunc ;==>_Form1
Func _ddu();读取
GUICtrlSetData($PListViewa5, "")
For $i = 1 To $aArraya1[0][0]
GUICtrlSetData($PListViewa5, $aArraya1[$i][1], "")
Next
EndFunc ;==>_ddu
Func btnClose()
GUIDelete()
Exit
EndFunc ;==>btnClose
Func WM_COMMAND($hWnd, $iMsg, $iwParam, $ilParam)
#forceref $hWnd, $iMsg
Local $hWndFrom, $iIDFrom, $iCode, $hWndListBox, $hWndListBox1, $txt
If Not IsHWnd($PListViewa5) Then $hWndListBox = GUICtrlGetHandle($PListViewa5)
$hWndFrom = $ilParam
$iIDFrom = BitAND($iwParam, 0xFFFF)
$iCode = BitShift($iwParam, 16)
Switch $hWndFrom
Case $PListViewa5, $hWndListBox
Switch $iCode
Case $LBN_SELCHANGE
$txt = _GUICtrlListBox_GetSelItemsText($PListViewa5)
MsgBox(0, 0, $txt[1], 1)
GUICtrlSetData($plusBtn6, $txt[1] & "---可在这里添加你的文件")
EndSwitch
EndSwitch
Return $GUI_RUNDEFMSG
EndFunc ;==>WM_COMMAND
|