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
This commit is contained in:
Vadim Zeitlin
2009-06-04 22:24:13 +00:00
parent d58772283e
commit a0d3f4d788

View 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.