#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
;$Path = @ScriptDir & "\"
;$Aero = IniRead(@ScriptDir & "\Config.ini", "Skin", "Aero", "")
$She = @ScriptDir & "\qq2008.she"
$skin = @ScriptDir & "\Skin.dll"
Global $aero=255
$Form1 = GUICreate("Form1", 346, 159, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 200, 112, 97, 17)
Skin($aero)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Checkbox1
If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then
$aero=150
Skin($aero)
EndIf
If GUICtrlRead($Checkbox1) = $GUI_UNCHECKED Then
$aero=255
Skin($aero)
EndIf
EndSwitch
WEnd
Func Skin($x=255)
$Dll = DllOpen($skin)
DllCall($Dll, "int", "SkinH_AttachEx", "str",$She, "str", "benkel")
DllCall($Dll, "int", "SkinH_SetAero", "int",0);0=不透明标题栏,1=透明标题栏
DllCall($Dll, "int", "SkinH_SetWindowAlpha", "int",$Form1,"int",$x)
EndFunc ;==>Skin
|