mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 20:18:22 +00:00
[WINESYNC][WORDPAD] paint_ruler(): Use GetSysColorBrush()
Import wine-4.7 commit:dcd9376ae7
Follow-up to 0.4.15-dev-5248-gbe014129a5
.
This commit is contained in:
parent
0828e16462
commit
dee3e6e7cd
1 changed files with 1 additions and 3 deletions
|
@ -381,10 +381,9 @@ static void paint_ruler(HWND hWnd, LONG EditLeftmost, BOOL NewMetrics)
|
||||||
HDC hdcPrint = make_dc();
|
HDC hdcPrint = make_dc();
|
||||||
RECT printRect = get_print_rect(hdcPrint);
|
RECT printRect = get_print_rect(hdcPrint);
|
||||||
RECT drawRect;
|
RECT drawRect;
|
||||||
HBRUSH hBrush = CreateSolidBrush(GetSysColor(COLOR_MENU));
|
|
||||||
|
|
||||||
GetClientRect(hWnd, &drawRect);
|
GetClientRect(hWnd, &drawRect);
|
||||||
FillRect(hdc, &drawRect, hBrush);
|
FillRect(hdc, &drawRect, GetSysColorBrush(COLOR_MENU));
|
||||||
|
|
||||||
InflateRect(&drawRect, 0, -3);
|
InflateRect(&drawRect, 0, -3);
|
||||||
drawRect.left = EditLeftmost;
|
drawRect.left = EditLeftmost;
|
||||||
|
@ -404,7 +403,6 @@ static void paint_ruler(HWND hWnd, LONG EditLeftmost, BOOL NewMetrics)
|
||||||
add_ruler_units(hdc, &drawRect, NewMetrics, EditLeftmost);
|
add_ruler_units(hdc, &drawRect, NewMetrics, EditLeftmost);
|
||||||
|
|
||||||
SelectObject(hdc, GetStockObject(BLACK_BRUSH));
|
SelectObject(hdc, GetStockObject(BLACK_BRUSH));
|
||||||
DeleteObject(hBrush);
|
|
||||||
DeleteDC(hdcPrint);
|
DeleteDC(hdcPrint);
|
||||||
EndPaint(hWnd, &ps);
|
EndPaint(hWnd, &ps);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue