mirror of
https://github.com/reactos/reactos.git
synced 2024-07-04 19:54:58 +00:00
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:
parent
c5cabb165a
commit
c6b03c24b9
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue