From ca1319d0139aa43bdc9769331e59f8173ab0e4e4 Mon Sep 17 00:00:00 2001 From: Scighost Date: Fri, 15 Nov 2024 23:24:05 +0800 Subject: [PATCH] hide window border when open game notices --- src/Starward/MyWindows/GameNoticesWindow.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Starward/MyWindows/GameNoticesWindow.xaml.cs b/src/Starward/MyWindows/GameNoticesWindow.xaml.cs index 4a4e7526c..cdcac2bac 100644 --- a/src/Starward/MyWindows/GameNoticesWindow.xaml.cs +++ b/src/Starward/MyWindows/GameNoticesWindow.xaml.cs @@ -77,6 +77,7 @@ private void InitializeWindow() presenter.IsResizable = false; presenter.SetBorderAndTitleBar(false, false); } + User32.SetWindowLong(WindowHandle, User32.WindowLongFlags.GWL_STYLE, User32.GetWindowLong(WindowHandle, User32.WindowLongFlags.GWL_STYLE) & ~(nint)User32.WindowStyles.WS_DLGFRAME); User32.SetWindowLong(WindowHandle, User32.WindowLongFlags.GWL_HWNDPARENT, MainWindow.Current.WindowHandle); var pos = MainWindow.Current.AppWindow.Position; var size = MainWindow.Current.AppWindow.Size;