找回密码
 加入
搜索
查看: 2755|回复: 2

[GUI管理] [已解决]谁换提供个换肤的例子呢?

[复制链接]
发表于 2010-11-19 17:02:55 | 显示全部楼层 |阅读模式
本帖最后由 net_e 于 2010-11-19 18:24 编辑

大牛们,

#Region ### START Koda GUI section ### Form=
FileInstall("hlong.she",@TempDir&"hlong.she",1)
FileInstall("Skin.dll",@TempDir&"Skin.dll",1)
$skins=@TempDir&"hlong.she"
$Dll = DllOpen(@TempDir&"Skin.dll")
DllCall($Dll, "int", "SkinH_AttachEx", "str", $skins, "str", "mhgd")
DllCall($Dll, "int", "SkinH_SetAero", "int", 0) ;参数 0 改为 1支持vista半透明边缘效果.

这个要怎么换肤啊?

自己搞定了,原来直接DllCall($Dll, "int", "SkinH_AttachEx", "str", $skins, "str", "mhgd") 再载入就能生效的。
发表于 2010-11-19 17:55:50 | 显示全部楼层
本帖最后由 yhxhappy 于 2010-11-19 17:58 编辑

楼主,@TempDir 这个返回的路径是没有后面的一个 \ 的,所以完整的文件应该是这样:
@TempDir&"\hlong.she"
@TempDir&"\Skin.dll"

你试试看,会不会是这个原因呢

我以前在网上找的一个换 msstyles 格式的皮肤是这么写的,我只会用,也不明白意思:
$SKINS = @ScriptDir & "\SK.msstyles"                                                                ;这里设定 $skins 为皮肤路径
$Dll_ = DllOpen(@ScriptDir & "\USkin.dll")                                                        ;这里设定 $Dll_ 为皮肤调用文件 USkin.dll 的路径
DllCall($Dll_, "int", "USkinInit", "str", "Null", "str", "NULL", "str", $SKINS)        ;载入皮肤到DLL返回值
DllCall($Dll_, "int", "USkinLoadSkin", "str", $SKINS)                                                ;启用皮肤
 楼主| 发表于 2010-11-19 18:18:36 | 显示全部楼层
谢谢楼上指出
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-6 19:18 , Processed in 0.079453 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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