mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:05:44 +00:00
[NtUser]
- Patch by Victor Matovykh : Remove menu spacing if there is no menu to paint. svn path=/trunk/; revision=71688
This commit is contained in:
parent
5113536603
commit
4c070bf073
1 changed files with 7 additions and 1 deletions
|
@ -2706,7 +2706,13 @@ UINT MENU_DrawMenuBar( HDC hDC, LPRECT lprect, PWND pWnd, BOOL suppress_draw )
|
||||||
HFONT hfontOld = 0;
|
HFONT hfontOld = 0;
|
||||||
PMENU lppop = UserGetMenuObject(UlongToHandle(pWnd->IDMenu));
|
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);
|
return UserGetSystemMetrics(SM_CYMENU);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue