Date Control Farbe

  • Guten Morgen zusammen,

    ich habe eine Gui in der ich meine Lern zeiten verwalte.
    Dazu habe ich ein Date Control verwendet und möchte gernde die BK Color des Controls ändern.
    Nur das funktioniert nicht. Date Control nimmt keine ander Color an.

    Wisst Ihr wo das Problem liegt und wie ich eine ander Farbe setzen kann, bsp. Grün.

    Spoiler anzeigen

    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <DateTimeConstants.au3>
    #include <WinAPI.au3>
    #include <WindowsConstants.au3>

    Global $beginndate

    $Form1 = GUICreate("Form1", 214, 90, 117, 109)

    $beginnh = GUICtrlCreateDate("", 30, 20, 150, 70, $DTS_TIMEFORMAT,$WS_EX_DLGMODALFRAME)
    GUICtrlSetFont(-1, 20, 400, 0)
    GUICtrlSetBkColor(-1, 0xff0000) ; Red

    $DTM_SETFORMAT_ = 0x1032
    $style = "HH:MM"

    GUISetState(@SW_SHOW)


    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    EndSwitch
    WEnd