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

[AU3基础] 图片按钮问题[已解决]

[复制链接]
发表于 2010-4-29 11:08:35 | 显示全部楼层 |阅读模式
本帖最后由 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
就这个地方 图片结合处 有空白?怎么解决呢?麻烦各位了。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2010-4-29 11:35:12 | 显示全部楼层
没人给帮下忙吗?
发表于 2010-4-29 11:43:08 | 显示全部楼层
后面那张图片在作怪!
 楼主| 发表于 2010-5-4 15:09:49 | 显示全部楼层
后面那张图片在作怪!
水木子 发表于 2010-4-29 11:43



    谢谢。我去掉了~~
发表于 2010-5-4 15:12:27 | 显示全部楼层
加皮肤后控件重叠或隐藏等,容易出现各种问题,看来还有待加强啊!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-13 16:42 , Processed in 0.094445 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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