mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +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;
|
RECT rcText;
|
||||||
COLORREF crPrevForeground;
|
COLORREF crPrevForeground;
|
||||||
TCHAR Text[260];
|
TCHAR Text[260];
|
||||||
|
HFONT hFont, hOldFont;
|
||||||
ULONG CpuUsage;
|
ULONG CpuUsage;
|
||||||
ULONG CpuKernelUsage;
|
ULONG CpuKernelUsage;
|
||||||
int nBars;
|
int nBars;
|
||||||
|
@ -173,7 +174,10 @@ void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
|
||||||
rcText = rcClient;
|
rcText = rcClient;
|
||||||
InflateRect(&rcText, -2, -2);
|
InflateRect(&rcText, -2, -2);
|
||||||
crPrevForeground = SetTextColor(hDC, RGB(0, 255, 0));
|
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);
|
DrawText(hDC, Text, -1, &rcText, DT_BOTTOM | DT_CENTER | DT_NOPREFIX | DT_SINGLELINE);
|
||||||
|
SelectObject(hDC, hOldFont);
|
||||||
SetTextColor(hDC, crPrevForeground);
|
SetTextColor(hDC, crPrevForeground);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -303,6 +307,7 @@ void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
|
||||||
RECT rcText;
|
RECT rcText;
|
||||||
COLORREF crPrevForeground;
|
COLORREF crPrevForeground;
|
||||||
TCHAR Text[260];
|
TCHAR Text[260];
|
||||||
|
HFONT hFont, hOldFont;
|
||||||
ULONGLONG CommitChargeTotal;
|
ULONGLONG CommitChargeTotal;
|
||||||
ULONGLONG CommitChargeLimit;
|
ULONGLONG CommitChargeLimit;
|
||||||
int nBars;
|
int nBars;
|
||||||
|
@ -338,7 +343,10 @@ void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
|
||||||
rcText = rcClient;
|
rcText = rcClient;
|
||||||
InflateRect(&rcText, -2, -2);
|
InflateRect(&rcText, -2, -2);
|
||||||
crPrevForeground = SetTextColor(hDC, RGB(0, 255, 0));
|
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);
|
DrawText(hDC, Text, -1, &rcText, DT_BOTTOM | DT_CENTER | DT_NOPREFIX | DT_SINGLELINE);
|
||||||
|
SelectObject(hDC, hOldFont);
|
||||||
SetTextColor(hDC, crPrevForeground);
|
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 |
|
STYLE DS_CENTER | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP |
|
||||||
WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_CAPTION | WS_SYSMENU |
|
WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_CAPTION | WS_SYSMENU |
|
||||||
WS_THICKFRAME
|
WS_THICKFRAME
|
||||||
CAPTION "Task Manager"
|
CAPTION "ReactOS Task Manager"
|
||||||
MENU IDR_TASKMANAGER
|
MENU IDR_TASKMANAGER
|
||||||
FONT 8, "MS Shell Dlg"
|
FONT 8, "MS Shell Dlg"
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
Loading…
Reference in a new issue