本帖最后由 lchl0588 于 2010-11-16 22:01 编辑
看一看偶没事测试玩!
改成跟LZ一样的
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 688, 488, 30, 124,BitOR($WS_SYSMENU, $WS_CAPTION, $WS_BORDER))
$Radio2 = GUICtrlCreateRadio("退出", 56, 80, 201, 25)
$c=GUICtrlSetState(-1,$GUI_UNCHECKED)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 523, 442, 192, 124,BitOR($WS_SYSMENU, $WS_CAPTION, $WS_BORDER),0,$Form2)
$Radio1 = GUICtrlCreateRadio("自动修复MBR,解除MBR病毒如:“鬼影", 56, 48, 217, 33)
$a=GUICtrlSetState(-1,$GUI_UNCHECKED)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Radio1,$Radio2
If GUICtrlRead($Radio1)=1 Then
MsgBox(0,"新窗口","成功"&@CR&"啥不是这里的内容",2)
ElseIf GUICtrlRead($Radio2)=1 Then
MsgBox(0,"新窗口","不好意思要退出啦")
Exit
EndIf
EndSwitch
WEnd
|