mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:56:05 +00:00
filip0402 : patch for taskmgr to remove some hardcode string tested by Harteex
svn path=/trunk/; revision=14971
This commit is contained in:
parent
60bdc5ad60
commit
35b46085ea
1 changed files with 6 additions and 2 deletions
|
@ -824,6 +824,10 @@ void TaskManager_OnExitMenuLoop(HWND hWnd)
|
||||||
RECT rc;
|
RECT rc;
|
||||||
int nParts[3];
|
int nParts[3];
|
||||||
TCHAR text[260];
|
TCHAR text[260];
|
||||||
|
TCHAR szCpuUsage[256], szProcesses[256];
|
||||||
|
|
||||||
|
LoadString(hInst, IDS_STATUS_CPUUSAGE, szCpuUsage, 256);
|
||||||
|
LoadString(hInst, IDS_STATUS_PROCESSES, szProcesses, 256);
|
||||||
|
|
||||||
bInMenuLoop = FALSE;
|
bInMenuLoop = FALSE;
|
||||||
/* Update the status bar pane sizes */
|
/* Update the status bar pane sizes */
|
||||||
|
@ -833,9 +837,9 @@ void TaskManager_OnExitMenuLoop(HWND hWnd)
|
||||||
nParts[2] = rc.right;
|
nParts[2] = rc.right;
|
||||||
SendMessage(hStatusWnd, SB_SETPARTS, 3, (long)nParts);
|
SendMessage(hStatusWnd, SB_SETPARTS, 3, (long)nParts);
|
||||||
SendMessage(hStatusWnd, SB_SETTEXT, 0, (LPARAM)_T(""));
|
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);
|
SendMessage(hStatusWnd, SB_SETTEXT, 1, (LPARAM)text);
|
||||||
wsprintf(text, _T("Processes: %d"), PerfDataGetProcessCount());
|
wsprintf(text, szProcesses, PerfDataGetProcessCount());
|
||||||
SendMessage(hStatusWnd, SB_SETTEXT, 0, (LPARAM)text);
|
SendMessage(hStatusWnd, SB_SETTEXT, 0, (LPARAM)text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue