From cf40cded1708bb303be4a404b7aceddd196e1d46 Mon Sep 17 00:00:00 2001
From: Moli <13026959681@163.com>
Date: 星期三, 29 七月 2026 20:58:14 +0800
Subject: [PATCH] v1.0
---
src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs b/src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs
index d4006ce..01c32f2 100644
--- a/src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs
+++ b/src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs
@@ -1,3 +1,5 @@
+using Moli.Desktop.Interop;
+
namespace Moli.Desktop.Tests.Interop;
public class Win32InteropContractTests
@@ -12,12 +14,16 @@
interop.SetToolWindow(hwnd, true);
interop.SetNoActivate(hwnd, true);
interop.SetLayered(hwnd, true, 128);
+ interop.MoveToDesktopLayer(hwnd, DesktopLayerMode.WorkerW, new Moli.Desktop.Layout.RectD(10, 20, 300, 120));
+ interop.RestoreTopLevelWindow(hwnd);
interop.SetBottomMost(hwnd);
Assert.True(interop.ClickThroughEnabled);
Assert.True(interop.ToolWindowEnabled);
Assert.True(interop.NoActivateEnabled);
Assert.Equal(128, interop.Opacity);
+ Assert.Equal(new Moli.Desktop.Layout.RectD(10, 20, 300, 120), interop.LayerBounds);
+ Assert.True(interop.RestoredTopLevel);
Assert.Single(interop.GetMonitors());
}
}
--
Gitblit v1.9.1