#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <SliderConstants.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
FileInstall("Uskin.dll",@TempDir & "Uskin.dll",1)
FileInstall("Skin.msstyles",@TempDir & "Skin.msstyles",1)
$skins = @TempDir & "Skin.msstyles"
$Dll_ = DllOpen(@TempDir & "Uskin.dll")
DllCall($Dll_, "int", "USkinInit", "str", "Null", "str", "NULL", "str", $skins)
DllCall($Dll_, "int", "USkinLoadSkin", "str", $skins)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 341, 231, 224, 214)
$Input1 = GUICtrlCreateInput("Input1", 24, 24, 121, 21)
$Button1 = GUICtrlCreateButton("Button1", 200, 32, 75, 25)
$Group1 = GUICtrlCreateGroup("Group1", 32, 64, 97, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Radio1 = GUICtrlCreateRadio("Radio1", 176, 8, 113, 17)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 176, 64, 97, 17)
$Tab1 = GUICtrlCreateTab(16, 112, 313, 113)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$Progress1 = GUICtrlCreateProgress(24, 144, 150, 17)
$Slider1 = GUICtrlCreateSlider(24, 176, 150, 45)
$Combo1 = GUICtrlCreateCombo("Combo1", 168, 160, 145, 25)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit (Quit())
EndSwitch
WEnd
Func Quit()
GUISetState(@SW_HIDE)
DllCall($dll_, "int:cdecl", "DeInitDecoration")
DllCall($dll_, "int:cdecl", "RemoveSkin")
DllClose($dll_)
FileDelete( @TempDir & "Skin.msstyles")
FileDelete(@TempDir & "Uskin.dll")
Exit
EndFunc
这里是代码,关闭的时候在SP3系统里面提示0x10018180错误。