- Patch by Victor Matovykh : Remove menu spacing if there is no menu to paint.

svn path=/trunk/; revision=71688
This commit is contained in:
James Tabor 2016-06-28 15:56:21 +00:00
parent 5113536603
commit 4c070bf073

View file

@ -2706,7 +2706,13 @@ UINT MENU_DrawMenuBar( HDC hDC, LPRECT lprect, PWND pWnd, BOOL suppress_draw )
HFONT hfontOld = 0;
PMENU lppop = UserGetMenuObject(UlongToHandle(pWnd->IDMenu));
if (lppop == NULL || lprect == NULL)
if (lppop == NULL)
{
// No menu. Do not reserve any space
return 0;
}
if (lprect == NULL)
{
return UserGetSystemMetrics(SM_CYMENU);
}