如何从INI读取背景图片
本帖最后由 qq4045728 于 2009-7-19 12:50 编辑$Form1 = GUICreate("Form1", 800, 600, -1, -1, $WS_POPUP)
$beijing1 =IniRead(@ScriptDir&"\deploytool.ini","2","bj1","")
$beijing2 =IniRead(@ScriptDir&"\deploytool.ini","2","bj2","")
$beijing3 =IniRead(@ScriptDir&"\deploytool.ini","2","bj3","")
$pic1 = GUICtrlCreatePic($beijing1, 0, 0, 0, 0)
$pic2 = GUICtrlCreatePic($beijing2, 0, 0, 0, 0)
$pic3 = GUICtrlCreatePic($beijing3, 0, 0, 0, 0)
为什么这样做却行不通?? 本帖最后由 ueiayz 于 2009-7-15 09:22 编辑
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 800, 600, -1, -1, $WS_POPUP)
$beijing1 =IniRead(@ScriptDir&"\deploytool.ini","2","bj1","")
$pic1 = GUICtrlCreatePic($beijing1, 0, 0, 400, 300)
GUISetState(@SW_SHOW)
While 1
Sleep(100)
WEnd1. GUICtrlCreatePic($beijing1, 0, 0, 0, 0)后面为什么是0,0? 难道你要创建的图片控件大小为0?那你怎么能看的到?
2 .样式 $WS_POPUP 应该包含到 WindowsConstants.au3
页:
[1]