Why when I minimize a window, the GDI+ graphics are cleaned? _GDIPlus_Startup() $hGui = GUICreate("test", 600, 400) GUISetState(@SW_SHOW, $hGui) $graphics = _GDIPlus_GraphicsCreateFromHWND($hGui) _GDIPlus_GraphicsFillRect($graphics, 0, 0, 300, 400, _GDIPlus_BrushCreateSolid(0xFFFFFFFF)) If I minimize and the maximize the window, the white rect disappears :|