mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[WINESYNC][USER32] MDI_AugmentFrameMenu(): Use GetSysColorBrush()
Import applicable part of wine-4.7 commit:8d251a1dd1
Follow-up to 0.4.15-dev-5248-gbe014129a5
.
This commit is contained in:
parent
79b0fce5dc
commit
0828e16462
1 changed files with 1 additions and 4 deletions
|
@ -919,7 +919,6 @@ static BOOL MDI_AugmentFrameMenu( HWND frame, HWND hChild )
|
|||
{
|
||||
HDC hMemDC;
|
||||
HBITMAP hBitmap, hOldBitmap;
|
||||
HBRUSH hBrush;
|
||||
HDC hdc = GetDC(hChild);
|
||||
|
||||
if (hdc)
|
||||
|
@ -931,10 +930,8 @@ static BOOL MDI_AugmentFrameMenu( HWND frame, HWND hChild )
|
|||
hBitmap = CreateCompatibleBitmap(hdc, cx, cy);
|
||||
hOldBitmap = SelectObject(hMemDC, hBitmap);
|
||||
SetMapMode(hMemDC, MM_TEXT);
|
||||
hBrush = CreateSolidBrush(GetSysColor(COLOR_MENU));
|
||||
DrawIconEx(hMemDC, 0, 0, hIcon, cx, cy, 0, hBrush, DI_NORMAL);
|
||||
DrawIconEx(hMemDC, 0, 0, hIcon, cx, cy, 0, GetSysColorBrush(COLOR_MENU), DI_NORMAL);
|
||||
SelectObject (hMemDC, hOldBitmap);
|
||||
DeleteObject(hBrush);
|
||||
DeleteDC(hMemDC);
|
||||
ReleaseDC(hChild, hdc);
|
||||
hSysMenuBitmap = hBitmap;
|
||||
|
|
Loading…
Reference in a new issue