Skip to content

Commit

Permalink
Update WindowImpl.cs (#16051)
Browse files Browse the repository at this point in the history
Restore WS_CHILD window style for embedded windows.
Should fix: #16048
  • Loading branch information
fitdev authored Jul 1, 2024
1 parent a85c20b commit aed7f3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Windows/Avalonia.Win32/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,9 @@ private void UpdateWindowProperties(WindowProperties newProperties, bool forceCh

WindowStyles style = WindowStyles.WS_CLIPCHILDREN | WindowStyles.WS_OVERLAPPEDWINDOW | WindowStyles.WS_CLIPSIBLINGS;

if (this is EmbeddedWindowImpl)
style |= WindowStyles.WS_CHILD;

if (IsWindowVisible(_hwnd))
style |= WindowStyles.WS_VISIBLE;

Expand Down

0 comments on commit aed7f3e

Please sign in to comment.