(求助)图片显示窗口问题(以解决)
本帖最后由 fuldho 于 2011-8-7 12:36 编辑怎样使第二张图片显示,第一张隐藏。#include <WindowsConstants.au3>
#include <StaticConstants.au3>
$Form1 = GUICreate("JPG窗口", 200, 100)
GUISetState(@SW_SHOW)
FileInstall("1.jpg", @TempDir & "\")
GUICtrlCreatePic(@TempDir & "\1.jpg", 0, 0, 100, 100, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
FileDelete(@TempDir & "\1.jpg")
Sleep(2000)
FileInstall("2.jpg", @TempDir & "\")
GUICtrlCreatePic(@TempDir & "\2.jpg", 0, 0, 100, 100, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
FileDelete(@TempDir & "\2.jpg")
Sleep(1000)
Exit 回复 1# fuldho
帮组里N多这类例子#include <WindowsConstants.au3>
#include <StaticConstants.au3>
FileInstall("1.jpg", @TempDir & "\")
FileInstall("2.jpg", @TempDir & "\")
$Form1 = GUICreate("JPG窗口", 200, 100)
$Pic = GUICtrlCreatePic(@TempDir & "\1.jpg", 0, 0, 100, 100)
GUISetState(@SW_SHOW)
Sleep(2000)
GUICtrlSetImage($Pic,@TempDir & "\2.jpg")
Sleep(2000)
FileDelete(@TempDir & "\1.jpg")
FileDelete(@TempDir & "\2.jpg")
Exit 我 事了不怎么好用呀
页:
[1]