From a0d3f4d788bcb4ed4b574b5fb3406b443dd36efa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 Jun 2009 22:24:13 +0000 Subject: [PATCH] account properly for the menu in SetShape() (closes #10870) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index cafb0cd710..6407ca753f 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -1071,7 +1071,7 @@ bool wxTopLevelWindowMSW::SetShape(const wxRegion& region) DWORD dwStyle = ::GetWindowLong(GetHwnd(), GWL_STYLE); DWORD dwExStyle = ::GetWindowLong(GetHwnd(), GWL_EXSTYLE); ::GetClientRect(GetHwnd(), &rect); - ::AdjustWindowRectEx(&rect, dwStyle, FALSE, dwExStyle); + ::AdjustWindowRectEx(&rect, dwStyle, ::GetMenu(GetHwnd()) != NULL, dwExStyle); ::OffsetRgn(hrgn, -rect.left, -rect.top); // Now call the shape API with the new region. -- 2.47.2