filip0402 : patch for taskmgr to remove some hardcode string tested by
Harteex
Modified: trunk/reactos/subsys/system/taskmgr/taskmgr.c
_____
Modified: trunk/reactos/subsys/system/taskmgr/taskmgr.c
--- trunk/reactos/subsys/system/taskmgr/taskmgr.c 2005-05-04
16:00:39 UTC (rev 14970)
+++ trunk/reactos/subsys/system/taskmgr/taskmgr.c 2005-05-04
16:54:48 UTC (rev 14971)
@@ -824,7 +824,11 @@
RECT rc;
int nParts[3];
TCHAR text[260];
+ TCHAR szCpuUsage[256], szProcesses[256];
+ LoadString(hInst, IDS_STATUS_CPUUSAGE, szCpuUsage, 256);
+ LoadString(hInst, IDS_STATUS_PROCESSES, szProcesses, 256);
+
bInMenuLoop = FALSE;
/* Update the status bar pane sizes */
GetClientRect(hWnd, &rc);
@@ -833,9 +837,9 @@
nParts[2] = rc.right;
SendMessage(hStatusWnd, SB_SETPARTS, 3, (long)nParts);
SendMessage(hStatusWnd, SB_SETTEXT, 0, (LPARAM)_T(""));
- wsprintf(text, _T("CPU Usage: %3d%%"),
PerfDataGetProcessorUsage());
+ wsprintf(text, szCpuUsage, PerfDataGetProcessorUsage());
SendMessage(hStatusWnd, SB_SETTEXT, 1, (LPARAM)text);
- wsprintf(text, _T("Processes: %d"), PerfDataGetProcessCount());
+ wsprintf(text, szProcesses, PerfDataGetProcessCount());
SendMessage(hStatusWnd, SB_SETTEXT, 0, (LPARAM)text);
}