mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 21:39:43 +00:00
wordpad: Use GetSysColorBrush().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8d251a1dd1
commit
dcd9376ae7
|
@ -376,10 +376,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;
|
||||||
|
@ -399,7 +398,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