Ich möchte gerne die Farbe des Balkens einer Progressbar ändern (Win 7).
Dafür sende ich die Nachricht $PBM_SETBARCOLOR. Leider funktioniert das nicht.
Was mache ich falsch?
Spoiler anzeigen
[autoit]
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#include <SendMessage.au3>
$GUI = GUICreate("GUI", 300, 100)
$Progress = GUICtrlCreateProgress(50, 35, 200, 30)
GUISetState(@SW_SHOW)
GUICtrlSetData($Progress, 50)
Sleep(1000)
[/autoit] [autoit][/autoit] [autoit]_SendMessage($Progress, $PBM_SETBARCOLOR, 0, 0x0000FF)
[/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
MfG,
xp_fan