if DwmCompositionEnabled then begin // This will hide the window. var bValue: Bool; bValue := False; DwmSetWindowAttribute(FMXHandleToHWND(Handle), DWMWA_CLOAK, @bValue, SizeOf(bValue)); end;