找回密码
 加入
搜索
查看: 3065|回复: 4

[GUI管理] 关于gui的图片控件

[复制链接]
发表于 2010-7-24 22:45:30 | 显示全部楼层 |阅读模式
为什么我用在GUICtrlCreatePic 在GUI上创建一个图片控件编译后在其他电脑上图片显示不出来呀
发表于 2010-7-24 22:53:46 | 显示全部楼层
FileInstall('图片文件')
 楼主| 发表于 2010-7-24 22:59:57 | 显示全部楼层
回复 2# afan
还是不行吗
源码:#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUICreate("My GUI")
GUISetState(@SW_SHOW)
GUICtrlCreatePic("C:\Documents and Settings\Administrator\桌面\w.jpg", 16, 192, 33, 33)
FileInstall("C:\Documents and Settings\Administrator\桌面\w.jpg",@AppDataDir & "\ii.jpg")
While 1
        $msg = GUIGetMsg()

        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
wend
发表于 2010-7-24 23:02:57 | 显示全部楼层
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
FileInstall("C:\Documents and Settings\Administrator\桌面\w.jpg", @AppDataDir & "\ii.jpg")

GUICreate("My GUI")
GUISetState(@SW_SHOW)
GUICtrlCreatePic(@AppDataDir & "\ii.jpg", 16, 192, 33, 33)

While 1
        $msg = GUIGetMsg()
        If $msg = $GUI_EVENT_CLOSE Then
                FileDelete(@AppDataDir & "\ii.jpg")
                ExitLoop
        Endif
WEnd
 楼主| 发表于 2010-7-24 23:05:57 | 显示全部楼层
回复 4# afan
谢谢afan大哥
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-22 01:25 , Processed in 0.075347 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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