xiaosen666m 发表于 2008-12-6 13:54:39

调用SkinCrafterDll.dll美化窗口

1.将SkinCrafterDll.dll和皮肤文件LEDWidget.skf复制到程序所在目录
2.在include头文件后插入如下代码:
FileInstall("SkinCrafterDll.dll", @TempDir & "\SkinCrafterDll.dll", 1)
   FileInstall("LEDWidget.skf", @TempDir & "\LEDWidget.skf", 1)
   $Dll = DllOpen(@TempDir & "\SkinCrafterDll.dll")
3.在#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 450, 193, 125)后插入一行代码,注意:保持Form1前后一致
_SkinGUI(@TempDir & "\SkinCrafterDll.dll", @TempDir & "\LEDWidget.skf", $Form1)
4.在窗口函数代码段后插入如下代码:
;定义皮肤函数
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   ;==>_SkinGUI

;皮肤退出
Func Quit()
        GUISetState(@SW_HIDE)
        DllCall($Dll, "int:cdecl", "DeInitDecoration")
        DllCall($Dll, "int:cdecl", "RemoveSkin")
        DllClose($Dll)
        FileDelete(@TempDir & "\SkinCrafterDll.dll")
        FileDelete(@TempDir & "\LEDWidget.skf")
                Exit
EndFunc




特别感谢卫和谐 http://www.autoitx.com/forum.php?mod=viewthread&tid=2634&extra=page%3D1

源文件:

[ 本帖最后由 xiaosen666m 于 2008-12-6 14:10 编辑 ]

penginfo 发表于 2008-12-6 14:56:28

谢谢楼主共享。

jsj731 发表于 2008-12-8 15:45:45

顶楼主,学习了!!!!!!!

waynelue 发表于 2008-12-11 12:10:59

收下了,谢谢

lamquan 发表于 2008-12-11 15:33:48

谢谢楼主。
但是DLL还有更多的API的介绍吗?WIDGET怎么制作啊?

UID 发表于 2008-12-16 11:34:17

收下了:face (36):

298311657 发表于 2009-2-17 16:09:43

非常感谢,留爪备用

OSK 发表于 2009-2-18 02:41:17

先留下.往後有用...
謝謝無私分享 ^_^

javarike 发表于 2009-2-18 20:53:10

不错,美化好看多了..呵呵``

xmxy 发表于 2009-2-19 01:16:50

谢谢楼主,收藏

jycel 发表于 2009-3-13 16:38:16

下载下来看了下,皮肤反搭配太伤眼了,感觉不好!

村牛 发表于 2009-3-17 05:49:46

这正式我所需要的谢谢楼主

laojikelly 发表于 2009-3-19 07:05:44

谢谢,我现在会了。。。呵呵。。。

ddx13 发表于 2009-3-28 23:12:25

SkinCrafterDll.dll找你好久了,终于找到了,谢谢楼主。

都市浪子666 发表于 2009-5-9 10:53:46

谢谢分享,下载享用,嘻嘻
页: [1] 2 3 4 5 6 7 8 9
查看完整版本: 调用SkinCrafterDll.dll美化窗口