From aed7f3e2b19e75a6c4f64b7c682628afb4056e42 Mon Sep 17 00:00:00 2001 From: George Date: Tue, 2 Jul 2024 00:24:12 +0300 Subject: [PATCH] Update WindowImpl.cs (#16051) Restore WS_CHILD window style for embedded windows. Should fix: #16048 --- src/Windows/Avalonia.Win32/WindowImpl.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Windows/Avalonia.Win32/WindowImpl.cs b/src/Windows/Avalonia.Win32/WindowImpl.cs index e6151489012..25644f49980 100644 --- a/src/Windows/Avalonia.Win32/WindowImpl.cs +++ b/src/Windows/Avalonia.Win32/WindowImpl.cs @@ -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;