reactos/base/applications
Hermès Bélusca-Maïto 129f10ea26 [TASKMGR] Cherry pick Hermes fixes
** WIP ** [TASKMGR] Get rid of thread-oriented updates. Just do it synchronously on WM_TIMER.

** WIP ** Merge RefreshPerformancePage() and PerformancePageRefreshThread(), now that we removed the separate performance page refreshing thread.

- Use _ui64tow() instead of _ultow() for converting ULONGLONGs into
  a string representation.

- Isolate the update of the status bar.

- Isolate the actual graphs redrawing. The idea for later is to not
  trigger any redrawings (and run unnecessary code) if the page is deactivated.

[TASKMGR] No need to get and save global handles for all the controls in the performance page.

... and especially for controls that are used only in one place.
Only handles to the graph controls are sufficient. For the others,
we can manage by using dialog control IDs.

- Rename AdjustFrameSize() 'pos' parameter to be more explicit.

** WIP ** Group trios of Memory performance getters together, as they are always used in succession.

- Group PerfDataGetCommitCharge[Total|Limit|Peak]K() together into
  PerfDataGetCommitChargeK().

- Group PerfDataGetKernelMemory[Total|Paged|NonPaged]K() together
  into PerfDataGetKernelMemoryK().

- Group PerfDataGetPhysicalMemory[Total|Available|SystemCache]K()
  together into PerfDataGetPhysicalMemoryK().

- Use these new Mem performance getters.

[TASKMGR] Use owner-drawn performance graphs.

- Use owner-drawn buttons to implement correct graph painting while
  maintaining the 3D appearance. As done on Windows (TM)

  Why using buttons (that should be disabled btw.)?
  Because we want, if the graphs fail to be created (due to e.g.
  lack of resources), to show a descriptive label of what's missing.

  This also allow the graphs to be drawn **properly** inside a 3D-border window.

- Redraw graphs on WM_DRAWITEM.

- Don't need to subclass button controls.

- Use DeferWindowPos() to avoid controls blinking on resize.

- Fix the problem of the buttons resizing as "1/x": this was due to
  the fact, using GetClientRect + Mapping, did't take the border into
  account. Instead, use GetWindowRect + a different coord mapping to
  fix all that.

- Remove some dead code.

- Rename the remaining ridiculously long variable names.

** WIP ** CPU/Mem meters: keep a separate copy of the CPU/Mem perf values.

+ Use structure for keeping state.

** WIP ** Add support for multiple-CPU stats. (In progress, needs code cleanup.)

In particular, use SystemProcessorTimeInfo to calculate the idle time
as done in ROSAPPS' ctm.exe, see commit c0873723.

See also https://ladydebug.com/blog/codes/cpuusage_win.htm

+ Fix the problem of NtQuerySystemInformation(SystemPerformanceInformation)
  that shows up when running a 32-bit build under Windows 7 x64.

** WIP ** Investigating showing physical memory in the MEM gauge.
2025-02-01 16:36:33 +02:00
..
atactl [REACTOS] Add missing line breaks at end of file 2024-10-06 10:47:11 +03:00
cacls
calc [BASE][DLL][ROSAPPS][SCREENSAVERS] Remove deprecated legacy Win16 resource attributes (#7567) 2024-12-22 16:50:14 +01:00
charmap [CHARMAP] Improve Romanian (ro-RO) translation (#6665) 2024-07-16 20:41:50 +02:00
charmap_new [REACTOS] Add missing line breaks at end of file 2024-10-06 10:47:11 +03:00
clipbrd [REACTOS] Refresh old URLs (#7632) 2025-01-28 13:36:45 +09:00
cmdutils [REACTOS] Refresh old URLs (#7632) 2025-01-28 13:36:45 +09:00
control [CONTROL] OpenShellFolder: Add file browser fallback 2024-06-14 02:14:10 +07:00
ctfmon
drwtsn32
dxdiag [REACTOS] Fix Kamil Horníček's last name again 2024-07-29 20:46:53 +03:00
extrac32
findstr
fltmc
fontview [REACTOS] Fix Kamil Horníček's last name where possible 2024-07-29 17:58:02 +03:00
games [REACTOS] Refresh old URLs (#7632) 2025-01-28 13:36:45 +09:00
hh
iexplore
kbswitch [KBSWITCH] Add Portuguese (pt-PT) translation (#7008) 2024-06-17 19:42:13 +03:00
logoff
magnify [TRANSLATION] Improve Italian (it-IT) translation part 2 (#7248) 2024-08-21 01:29:34 +02:00
mmc
mplay32
msconfig [MSCONFIG] Update Romanian (ro-RO) translation (#7353) 2024-11-03 20:39:20 +01:00
msconfig_new [REACTOS] Refresh old URLs (#7632) 2025-01-28 13:36:45 +09:00
mscutils [REACTOS] Refresh old URLs (#7632) 2025-01-28 13:36:45 +09:00
mshta
mspaint [MSPAINT] Update Turkish (tr-TR) translation (#7371) 2024-09-26 00:12:19 +02:00
mstsc [REACTOS] Refresh old URLs (#7632) 2025-01-28 13:36:45 +09:00
network [REACTOS] Refresh old URLs (#7632) 2025-01-28 13:36:45 +09:00
notepad [REACTOS] Refresh old URLs (#7632) 2025-01-28 13:36:45 +09:00
osk [RESOURCES] Remove redundant #pragma code_page(), includes, etc. 2024-12-22 18:39:26 +01:00
rapps [RAPPS] Set working directory for zip generated shortcuts (#7674) 2025-01-29 00:46:11 +01:00
rapps_com [REACTOS] Use the ISO C and C++ conformant names: _wcsicmp, _stricmp 2024-10-20 14:12:25 +03:00
regedit [REGEDIT] Add ES_AUTOHSCROLL to address bar window (#7638) 2025-01-20 01:01:30 +09:00
regedt32
runas [REACTOS] Use the ISO C and C++ conformant names: _wcsicmp, _stricmp 2024-10-20 14:12:25 +03:00
sc
screensavers [BASE][DLL][ROSAPPS][SCREENSAVERS] Remove deprecated legacy Win16 resource attributes (#7567) 2024-12-22 16:50:14 +01:00
sdbinst
setup16
shutdown [SHUTDOWN] Update Romanian (ro-RO) translation (#7293) 2024-09-18 01:08:22 +02:00
sndrec32 [SNDREC32] Update Romanian (ro-RO) translation (#6733) 2024-07-16 21:24:07 +02:00
sndvol32 [REACTOS] Use the ISO C and C++ conformant names: _wcsicmp, _stricmp 2024-10-20 14:12:25 +03:00
taskmgr [TASKMGR] Cherry pick Hermes fixes 2025-02-01 16:36:33 +02:00
utilman
winhlp32 [3RDPARTY] Link to oldnames for stricmp/wcsicmp 2024-10-20 14:12:25 +03:00
winver
wordpad [WORDPAD] Update Romanian (ro-RO) translation (#6531) 2024-07-16 20:13:20 +02:00
write
wusa
CMakeLists.txt