根据autoit的代码改写,dll是2.7的,用autoit完全正常
哪位大侠帮忙看一下,谢谢了SkinCrafter_AttachSkin(fileSkinDll, fileSkin, hWnd)
{
global $hModule_SkinDll
If !$hModule_SkinDll
$hModule_SkinDll := DllCall("LoadLibrary", Str, fileSkinDll)
; 授权,reg_name, company, email, licenkey
DllCall(fileSkinDll . "\InitLicenKeys", Str, "1", Str, "", Str, "1@1.com", Str, "1", "Cdecl Int")
; 初始皮肤引擎: 模式1 - 换肤所有控件,0 - 部分换肤
DllCall(fileSkinDll . "\InitDecoration", Int, 1, "Cdecl Int")
DllCall(fileSkinDll . "\LoadSkinFromFile", Str, fileSkin, "Cdecl Int")
; 控件皮肤映射为某一标准类型, 25 - Dialog Background
DllCall(fileSkinDll . "\DecorateAs", Int, hWnd, Int, 25, "Cdecl Int")
DllCall(fileSkinDll . "\ApplySkin")
}
SkinCrafter_DetachSkin(fileSkinDll)
{
global $hModule_SkinDll
If $hModule_SkinDll
{
DllCall(fileSkinDll . "\DeInitDecoration", "Cdecl Int")
DllCall(fileSkinDll . "\RemoveSkin", "Cdecl Int")
DllCall("FreeLibrary", "UInt", $hModule_SkinDll)
}
}
|