mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user