本帖最后由 jtw 于 2013-3-14 21:02 编辑
代码如下:#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Tab1 = GUICtrlCreateTab(56, 56, 497, 337)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
GUICtrlCreateTabItem("")
$Pic1 = GUICtrlCreatePic(@ScriptDir & "\back.jpg", 56, 80, 497, 313)
$Button1 = GUICtrlCreateButton("Button1", 88, 120, 121, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox(4096,"错在哪呀","为什么点击没反应呀?")
EndSwitch
WEnd
为什么 GUICtrlCreateTab设置背景图片后,按钮就不能点击了?请指点,谢谢。 |