Skip to content

Commit

Permalink
hide window border when open game notices
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Nov 15, 2024
1 parent 2e589a4 commit ca1319d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Starward/MyWindows/GameNoticesWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca1319d

Please sign in to comment.