account properly for the menu in SetShape() (closes #10870)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Jun 2009 22:24:13 +0000 (22:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Jun 2009 22:24:13 +0000 (22:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/toplevel.cpp

index cafb0cd7103294edc935d37bd36b078a2a2d4069..6407ca753f5d551bddab93519e1c4d73ec36a7fe 100644 (file)
@@ -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.