图片按钮问题[已解决]
本帖最后由 woeiwoei 于 2010-5-5 10:12 编辑#NoTrayIcon
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
FileInstall("SkinCrafterDll.dll",@WindowsDir&"\temp\SkinCrafterDll.dll")
FileInstall("vista.skf",@WindowsDir&"\temp\vista.skf")
Dim $Dll
$Form1 = GUICreate("关机-注销-重启", 234, 87, 380, 226)
_SkinGUI(@WindowsDir & "\temp\SkinCrafterDll.dll" ,@WindowsDir & "\temp\vista.skf", $Form1)
$Pic1 = GUICtrlCreatePic(@ScriptDir&"\s.jpg", 0, 0, 380, 226)
GuiCtrlSetState(-1,$GUI_DISABLE)
$Icon1 = GUICtrlCreateIcon("", -1, 112, 88, 57, 41)
$Button1 = GUICtrlCreateButton("注销", 8, 24, 57, 41)
$Button2 = GUICtrlCreateButton("重启", 88, 24, 57, 41)
$Button3 = GUICtrlCreateButton("关机", 168, 24, 57, 41)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Func _SkinGUI($SkincrafterDll, $SkincrafterSkin, $Handle)
$Dll = DllOpen($SkincrafterDll)
DllCall($Dll, "int:cdecl", "InitLicenKeys", "wstr", "1", "wstr", "", "wstr", "1@1.com", "wstr", "1")
DllCall($Dll, "int:cdecl", "InitDecoration", "int", 1)
DllCall($Dll, "int:cdecl", "LoadSkinFromFile", "wstr", $SkincrafterSkin)
DllCall($Dll, "int:cdecl", "DecorateAs", "int", $Handle, "int", 25)
DllCall($Dll, "int:cdecl", "ApplySkin")
EndFunc
Func Quit()
GUISetState(@SW_HIDE)
DllCall($dll, "int:cdecl", "DeInitDecoration")
DllCall($dll, "int:cdecl", "RemoveSkin")
DllClose($dll)
FileDelete(@WindowsDir & "\temp\SkinCrafterDll.dll")
FileDelete(@WindowsDir & "\temp\vista.skf")
Exit
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Shutdown(0)
Exit
Case $Button2
Shutdown(6)
Exit
Case $Button3
Shutdown(5)
Exit
EndSwitch
WEnd
就这个地方 图片结合处 有空白?怎么解决呢?麻烦各位了。
没人给帮下忙吗?:face (30): 后面那张图片在作怪! 后面那张图片在作怪!
水木子 发表于 2010-4-29 11:43 http://www.autoitx.com/images/common/back.gif
谢谢。我去掉了~~ 加皮肤后控件重叠或隐藏等,容易出现各种问题,看来还有待加强啊!
页:
[1]