Hallo, ich habe von jemandem diese Funktion hier bekommen:
Spoiler anzeigen
Func XpSyleToggle($onoff = 1)
Local $xs_n
If Not StringInStr(@OSTYPE, "WIN32_NT") Then Return 0
If $onoff Then
$xs_n = DllCall("uxtheme.dll", "int", "GetThemeAppProperties")
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)
Return 1
ElseIf IsArray($xs_n) Then
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", $xs_n[0])
$xs_n = ""
Return 1
EndIf
Return 0
EndFunc ;==>XpSyleToggle
Ich starte diese Funktion beim Erstellen von Progressen, danach beende ich sie "angeblich", damit die kommenden Elemente nicht auch in diesem Style sind. Nur das Problem dabei ist, dass der Style vorhanden bleibt.
Spoiler anzeigen
GUICreate("", 200, 100)
XpSyleToggle()
GUICtrlCreateProgress(16, 35, 160, 17)
GUICtrlSetData(-1, 70)
GUICtrlSetColor(-1, 0xFF0000)
XpSyleToggle(0)
GUISetState()
GUICtrlCreateButton("click",10,70,160,20)
While 1
Switch GUIGetMsg()
Case -3
Exit
EndSwitch
Sleep(10)
WEnd
Func XpSyleToggle($onoff = 1)
Local $xs_n
If Not StringInStr(@OSTYPE, "WIN32_NT") Then Return 0
If $onoff Then
$xs_n = DllCall("uxtheme.dll", "int", "GetThemeAppProperties")
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)
Return 1
ElseIf IsArray($xs_n) Then
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", $xs_n[0])
$xs_n = ""
Return 1
EndIf
Return 0
EndFunc ;==>XpSyleToggle
Das als Beispiel, der Button ist auch in dem alten Style.
Die Sufu wollte mir zu dem Begriff auch nichts preisgeben, hoffe ihr könnt mir sagen warum das nicht will. Oder liegt das an Vista?