找回密码
 加入
搜索
查看: 1671|回复: 3

如何隐藏或关闭GUI上面的图片?

[复制链接]
发表于 2008-9-9 20:09:08 | 显示全部楼层 |阅读模式
请教 如何隐藏或关闭GUI上面的图片?
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>


#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 398, 328, 193, 125)
$Button1 = GUICtrlCreateButton("显示", 16, 272, 81, 33, 0)
$Button2 = GUICtrlCreateButton("隐藏", 144, 272, 89, 33, 0)
$Button3 = GUICtrlCreateButton("退出", 280, 272, 89, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                $pick = InetGet("http://ptlogin2.qq.com/getimage?0.9949486774375326", "QQ.bmp", 1, 0)
                $shuashau = GUICtrlCreatePic("QQ.bmp", 35, 42, 130, 53) ;在GUI上创建一个图片控件
                Case $Button2

                Case $Button3
                        Exit

        EndSwitch
WEnd


[ 本帖最后由 论坛管理员 于 2008-9-9 22:12 编辑 ]
发表于 2008-9-9 21:06:17 | 显示全部楼层
GUICtrlSetState(控件名,$gui_hide)要的是不是这个?
 楼主| 发表于 2008-9-9 22:12:38 | 显示全部楼层
原帖由 ken0137 于 2008-9-9 21:06 发表
GUICtrlSetState(控件名,$gui_hide)要的是不是这个?


谢谢你!
原来 用
GUICtrlSetState($shuashau,$gui_hide)  

就搞掂了
发表于 2008-9-10 03:42:27 | 显示全部楼层
楼主的ID太反动了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-6 22:20 , Processed in 0.077090 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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