回复 4# afan
是这样吗?#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("父窗口", 411, 315, 192, 124)
$Button1 = GUICtrlCreateButton("打开子窗口", 24, 16, 193, 89)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$sum=GUICreate('我是子窗口',200,200,100,100,Default,Default,$Form1)
GUISetState(@SW_SHOW,$sum)
EndSwitch
WEnd
怎么我试了没效果?? |