From: Vadim Zeitlin Date: Thu, 4 Jun 2009 22:24:13 +0000 (+0000) Subject: account properly for the menu in SetShape() (closes #10870) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a0d3f4d788bcb4ed4b574b5fb3406b443dd36efa 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 --- 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.