找回密码
 加入
搜索
查看: 1801|回复: 2

无法关闭第二个窗体

  [复制链接]
发表于 2008-10-8 19:39:07 | 显示全部楼层 |阅读模式
Case $Labe1
_zhang()
;调出第二个窗体
Func _zhang()
$Form2 = GUICreate("使用说明", 291, 342, 193, 125, 0)
$Label1 = GUICtrlCreateLabel("说明", 126, 15, 30, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Label2", 10, 47, 270, 281)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
EndFunc
怎么就无法关闭呢?请教~~~看看到底那个地方出错了

在线等待~~~
发表于 2008-10-9 10:07:02 | 显示全部楼层

Func _zhang()
        $Form2 = GUICreate("使用说明", 291, 342, 193, 125, 0)
        $Label1 = GUICtrlCreateLabel("说明", 126, 15, 30, 20)
        GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
        $Label2 = GUICtrlCreateLabel("Label2", 10, 47, 270, 281)
        GUISetState(@SW_SHOW)
        While 1
                $nMsg = GUIGetMsg()
                Switch $nMsg
                        Case $GUI_EVENT_CLOSE
                                GUIDelete($Form2)
                                ExitLoop ;或 Return
                EndSwitch
        WEnd
EndFunc
发表于 2008-10-9 14:07:26 | 显示全部楼层
支持一下。顺便做个记号。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-24 05:01 , Processed in 0.075834 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表