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

[GUI管理] 【已解决】GUI标签透明问题,加皮肤后就不透明拉怎么会事??

[复制链接]
发表于 2010-9-16 15:08:57 | 显示全部楼层 |阅读模式
本帖最后由 qq82015930 于 2010-9-16 16:42 编辑
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 433, 292, 192, 114)
Dim $bf=@TempDir&"\vista.skf"                            
_SkinGUI(@TempDir&"\SkinCrafterDll.dll", $bf, $Form1 )   
$Pic1 = GUICtrlCreatePic("1.jpg", 8, 0, 385, 129)
GUICtrlSetState(-1, $GUI_DISABLE)
$Label1 = GUICtrlCreateLabel("测试标签", 128, 32, 76, 17)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)   
$Button1 = GUICtrlCreateButton("Button1", 64, 176, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 224, 176, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd


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(@TempDir&"\SkinCrafterDll.dll")
        FileDelete(@TempDir&"\vista.skf")
        FileDelete(@TempDir&"\1.jpg")
        Exit
EndFunc   ;==>quit
GUI标签透明问题,加皮肤后就不透明拉怎么会事??

解决拉,换用的USkin.dll

评分

参与人数 1金钱 +10 收起 理由
afan + 10 感谢主动将修改帖子分类为[已解决],请继续 ...

查看全部评分

 楼主| 发表于 2010-9-16 15:28:02 | 显示全部楼层
怕淹没,自己顶一下
发表于 2010-9-16 16:04:45 | 显示全部楼层
借用一句很经典的话:“纹了身穿上衣服还看得见?”
 楼主| 发表于 2010-9-16 16:42:05 | 显示全部楼层
回复 3# 3mile


   
哦,谢谢,解决拉,换用的USkin.dll
发表于 2011-7-30 23:13:36 | 显示全部楼层
DllCall($Dll, "int", "SkinH_SetAero", "int", 0) 参数0 带带不启用透明效果 1代表启用
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-2 23:50 , Processed in 0.078553 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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