set the text in the mem and cpu graphs to use the default GUI font. This cleans up the appearance

svn path=/trunk/; revision=27931
This commit is contained in:
Ged Murphy 2007-07-27 13:47:28 +00:00
parent c5cabb165a
commit c6b03c24b9
2 changed files with 9 additions and 1 deletions

View file

@ -137,6 +137,7 @@ void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
RECT rcText;
COLORREF crPrevForeground;
TCHAR Text[260];
HFONT hFont, hOldFont;
ULONG CpuUsage;
ULONG CpuKernelUsage;
int nBars;
@ -173,7 +174,10 @@ void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
rcText = rcClient;
InflateRect(&rcText, -2, -2);
crPrevForeground = SetTextColor(hDC, RGB(0, 255, 0));
hFont = GetStockObject(DEFAULT_GUI_FONT);
hOldFont = SelectObject(hDC, hFont);
DrawText(hDC, Text, -1, &rcText, DT_BOTTOM | DT_CENTER | DT_NOPREFIX | DT_SINGLELINE);
SelectObject(hDC, hOldFont);
SetTextColor(hDC, crPrevForeground);
/*
@ -303,6 +307,7 @@ void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
RECT rcText;
COLORREF crPrevForeground;
TCHAR Text[260];
HFONT hFont, hOldFont;
ULONGLONG CommitChargeTotal;
ULONGLONG CommitChargeLimit;
int nBars;
@ -338,7 +343,10 @@ void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
rcText = rcClient;
InflateRect(&rcText, -2, -2);
crPrevForeground = SetTextColor(hDC, RGB(0, 255, 0));
hFont = GetStockObject(DEFAULT_GUI_FONT);
hOldFont = SelectObject(hDC, hFont);
DrawText(hDC, Text, -1, &rcText, DT_BOTTOM | DT_CENTER | DT_NOPREFIX | DT_SINGLELINE);
SelectObject(hDC, hOldFont);
SetTextColor(hDC, crPrevForeground);
/*

View file

@ -179,7 +179,7 @@ IDD_TASKMGR_DIALOG DIALOG DISCARDABLE 0, 0, 264, 246
STYLE DS_CENTER | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP |
WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_CAPTION | WS_SYSMENU |
WS_THICKFRAME
CAPTION "Task Manager"
CAPTION "ReactOS Task Manager"
MENU IDR_TASKMANAGER
FONT 8, "MS Shell Dlg"
BEGIN