本帖最后由 cumtljj 于 2014-6-15 11:37 编辑
写在前面:皮肤不是我写的 我只是转来的 可以说几乎完美
皮肤文件和dll文件在后面的附件中……
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
_skins()
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("测试皮肤", 356, 229, 192, 124)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
_deleteskins()
EndSwitch
WEnd
;加载皮肤,放在创建窗口之前
Func _skins()
FileInstall("C:\autoit3\skins\win8.she", @TempDir & "win8.she", 1) ;自定义she皮肤路径
FileInstall("C:\autoit3\skins\Skin.dll", @TempDir & "Skin.dll", 1) ;自定义skin.dll文件路径
$skins = @TempDir & "win8.she"
$dll = DllOpen(@TempDir & "Skin.dll")
DllCall($dll, "int", "SkinH_AttachEx", "str", $skins, "str", "mhgd")
EndFunc ;==>_skins
;卸载皮肤
Func _deleteskins()
FileDelete(@TempDir & "Skin.dll")
FileDelete(@TempDir & "win8.she")
EndFunc ;==>_deleteskins
she皮肤所调用的skin.dll函数汇总
http://www.autoitx.com/forum.php ... id=44503&extra=
|