Hai Leute,
Ich möchte ein kleines radar machen...ich wollt das radar mit Gdi+ zeichen!
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Gdiplus.au3>
$HWND = GUICreate("Form1", 301, 251, 1122, 571, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_DLGFRAME,$WS_GROUP,$WS_TABSTOP,$WS_CLIPSIBLINGS), BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
GUISetState(@SW_SHOW)
_GDIPlus_Startup()
$hGraphics = _GDIPlus_GraphicsCreateFromHWND($HWND)
_GDIPlus_GraphicsDrawLine($hGraphics, 301, 110, 0, 110)
_GDIPlus_GraphicsDrawLine($hGraphics, 155, 0, 155, 301)
_GDIPlus_GraphicsDrawArc($hGraphics, 134, 90, 50, 50 , 360 , 360)
_GDIPlus_GraphicsDrawArc($hGraphics, 134, 90, 100, 100 , 360 , 360)
_GDIPlus_GraphicsDrawArc($hGraphics, 134, 90, 200, 200 , 360 , 360)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Wie kann ich jetzt oohne lang aus zu Probieren die Kreise genau mit dem MIttelpunkt in die mitte der Gui bringen?