bian123shao 发表于 2010-7-24 22:45:30

关于gui的图片控件

为什么我用在GUICtrlCreatePic 在GUI上创建一个图片控件编译后在其他电脑上图片显示不出来呀

afan 发表于 2010-7-24 22:53:46

FileInstall('图片文件')

bian123shao 发表于 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

afan 发表于 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

bian123shao 发表于 2010-7-24 23:05:57

回复 4# afan
谢谢afan大哥
页: [1]
查看完整版本: 关于gui的图片控件