mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 21:13:01 +00:00
Calc: Now using the proper system brush to paint the number pane
svn path=/trunk/; revision=18306
This commit is contained in:
parent
69d5c43dbd
commit
37a51aa3f6
1 changed files with 5 additions and 0 deletions
|
@ -2741,6 +2741,8 @@ void DrawCalcText (HDC hdc, HDC hMemDC, PAINTSTRUCT *ps, CALC *calc, int object
|
||||||
HFONT hFontOrg;
|
HFONT hFontOrg;
|
||||||
HPEN hPen;
|
HPEN hPen;
|
||||||
HPEN hPenOrg;
|
HPEN hPenOrg;
|
||||||
|
HBRUSH hBrush;
|
||||||
|
HBRUSH hBrushOrg;
|
||||||
|
|
||||||
TCHAR s2[CALC_BUF_SIZE];
|
TCHAR s2[CALC_BUF_SIZE];
|
||||||
|
|
||||||
|
@ -2801,6 +2803,8 @@ void DrawCalcText (HDC hdc, HDC hMemDC, PAINTSTRUCT *ps, CALC *calc, int object
|
||||||
|
|
||||||
hPen = CreatePen(PS_SOLID, 1, RGB(255,255,255));
|
hPen = CreatePen(PS_SOLID, 1, RGB(255,255,255));
|
||||||
hPenOrg = SelectObject(hdc, hPen);
|
hPenOrg = SelectObject(hdc, hPen);
|
||||||
|
hBrush = GetSysColorBrush(COLOR_WINDOW);
|
||||||
|
hBrushOrg = SelectObject(hdc, hBrush);
|
||||||
|
|
||||||
MoveToEx(hdc,
|
MoveToEx(hdc,
|
||||||
WDISPLAY_LEFT - 1,
|
WDISPLAY_LEFT - 1,
|
||||||
|
@ -2814,6 +2818,7 @@ void DrawCalcText (HDC hdc, HDC hMemDC, PAINTSTRUCT *ps, CALC *calc, int object
|
||||||
Rectangle(hdc, WDISPLAY_LEFT, WDISPLAY_TOP, WDISPLAY_RIGHT, WDISPLAY_BOTTOM);
|
Rectangle(hdc, WDISPLAY_LEFT, WDISPLAY_TOP, WDISPLAY_RIGHT, WDISPLAY_BOTTOM);
|
||||||
|
|
||||||
SelectObject(hdc, hPenOrg);
|
SelectObject(hdc, hPenOrg);
|
||||||
|
SelectObject(hdc, hBrushOrg);
|
||||||
DeleteObject(hPen);
|
DeleteObject(hPen);
|
||||||
|
|
||||||
SetBkMode(hdc, TRANSPARENT);
|
SetBkMode(hdc, TRANSPARENT);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue