mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 12:15:46 +00:00
use syscolor brush for menu background, fixes a brush leak.
svn path=/trunk/; revision=32146
This commit is contained in:
parent
8de349c343
commit
d03dd0d4f6
|
@ -346,8 +346,7 @@ IntCreateMenu(PHANDLE Handle, BOOL IsMenuBar)
|
|||
Menu->MenuInfo.fMask = 0; /* not used */
|
||||
Menu->MenuInfo.dwStyle = 0; /* FIXME */
|
||||
Menu->MenuInfo.cyMax = 0; /* default */
|
||||
Menu->MenuInfo.hbrBack =
|
||||
NtGdiCreateSolidBrush(RGB(192, 192, 192), 0); /* FIXME: default background color */
|
||||
Menu->MenuInfo.hbrBack = IntGetSysColorBrush(COLOR_MENU);
|
||||
Menu->MenuInfo.dwContextHelpID = 0; /* default */
|
||||
Menu->MenuInfo.dwMenuData = 0; /* default */
|
||||
Menu->MenuInfo.Self = *Handle;
|
||||
|
@ -1995,7 +1994,7 @@ NtUserGetMenuItemRect(
|
|||
Rect.top += YMove;
|
||||
Rect.right += XMove;
|
||||
Rect.bottom += YMove;
|
||||
|
||||
|
||||
Status = MmCopyToCaller(lprcItem, &Rect, sizeof(RECT));
|
||||
if (! NT_SUCCESS(Status))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue