FileInstall("SkinCrafterDll.dll",@TempDir&"SkinCrafterDll.dll",1)
FileInstall("Skin.skf",@TempDir&"Skin.skf",1)
FileInstall("Pic.bmp",@TempDir&"Pic.bmp",1)
$Form = GUICreate("Form", 420, 240, -1, -1)
Dim $dll,$Url
Dim $pf=@TempDir&"Skin.skf"
_SkinGUI(@TempDir&"SkinCrafterDll.dll", $pf, $Form)
_WaterCtrl_Startup(@TempDir&"Pic.bmp", $Form, '420,74')
$Button1 = GUICtrlCreateButton("确定(&O)", 166, 206, 75, 25)
$Button2 = GUICtrlCreateButton("取消(&C)", 245, 206, 75, 25)
$Button3 = GUICtrlCreateButton("帮助(&H)", 325, 206, 75, 25)
GUISetState(@SW_SHOW)
$Info = GUICreate("Help", 199, 202, -1, -1)
$Edit1 = GUICtrlCreateEdit("", 0, 0, 199, 164, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_READONLY,$ES_WANTRETURN))
$Button = GUICtrlCreateButton("确定(&O)", 112, 170, 75, 25)
GUISetState(@SW_HIDE)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Quit()
Case $Button1
MsgBox(0,"标题","文本")
Case $Button2
Quit()
Case $Button3
InfoCreate()
EndSwitch
WEnd
_WaterCtrl_Shutdown()
GUIDelete()
Exit
Func InfoCreate()
GUISwitch($Info)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUISwitch($Info)
GUISetState(@SW_HIDE)
ExitLoop
Case $Button
GUISwitch($Info)
GUISetState(@SW_HIDE)
ExitLoop
EndSwitch
WEnd
EndFunc ;==>InfoCreate
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
GUISetState(@SW_SHOW)
Func Quit()
GUISetState(@SW_HIDE)
DllCall($dll, "int:cdecl", "DeInitDecoration")
DllCall($dll, "int:cdecl", "RemoveSkin")
DllClose($dll)
FileDelete(@TempDir&"SkinCrafterDll.dll")
FileDelete(@TempDir&"Skin.skf")
FileDelete(@TempDir&"Pic.bmp")
Exit
EndFunc ;==>Quit