加入图标的问题。
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
Local $path=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt","InstallDir")&"\Aut2Exe\Icons"
$Form1 = GUICreate("", 215, 175, 465, 282)
$Tab1 = GUICtrlCreateTab(0, 0, 180, 23,$BS_ICON)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
GUICtrlSetImage(-1,$path&"\cherry.ico")
$TabSheet2=GUICtrlCreateTabItem("TabSheet2")
GUICtrlSetImage(-1,$path&"\favicon.ico")
GUICtrlCreateTabItem("")
$Button1 = GUICtrlCreateButton("Button1", 64, 112, 73, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Tab1
Switch GUICtrlRead($Tab1)
Case 0
MsgBox(64,"TabItem1","TabItem1",10)
Case 1
MsgBox(64,"TabItem2","TabItem2",10)
EndSwitch
EndSwitch
WEnd
|