Commit Graph

103 Commits

Author SHA1 Message Date
NotEnsoul 5bb68c3a97 Fix multiline graph text wrapping and background rendering (#2988) 2026-07-13 02:33:08 +10:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex 09d21bb3b1 Update graph.c 2026-05-16 16:09:21 +10:00
dmex 96b6df5ff8 Cache per-graph fonts and handle DPI
Introduce per-graph cached fonts and DPI tracking to avoid global font handle replacement across windows. Replace the previous global queued-lock/lastDpi/iconTitleFont approach with per-drawinfo caching, and ensure graph contexts free their cached fonts on destroy. When copying draw-info between users, only copy the public prefix using FIELD_OFFSET to avoid copying cache fields. Also fix font height adjustments to use PhMultiplyDivideSigned.
2026-05-11 08:25:58 +10:00
dmex 15e7859cc0 Add PH_RESTRICT, rename locals, and adjust defs
Apply PH_RESTRICT annotations to many pointer parameters and internal pointers to improve aliasing/optimization (string routines, graph drawing, hashing, comparison, copy functions)
2026-04-19 01:20:45 +10:00
dmex b34a4b4d8d Add PH_RESTRICT 2026-04-15 13:42:00 +10:00
dmex 80c55b5fe1 Add text formatting support to PhSetGraphText2 2026-01-11 16:30:38 +11:00
dmex 400d9a0ef1 Add SysInfoShowCpuSpeedPerCpu 2025-09-28 18:01:44 +10:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex 5778b4a36b Update to latest SDK 2025-05-23 03:15:54 +10:00
dmex b847a5269d Update graph.c 2025-03-22 00:29:24 +11:00
dmex bc210f1711 Fix window sizes, positions and DPI scaling 2025-03-08 08:10:22 +11:00
dmex 00fae6a5ac Restore InvalidateRect 2025-01-01 07:07:52 +11:00
dmex e54d972afb Update graph.c 2024-12-29 05:33:54 +11:00
dmex 300fa8d419 Add PhGetClientRect 2024-12-23 05:37:14 +11:00
dmex bfc7a93c56 Fix null reference during cleanup 2024-12-13 12:29:38 +11:00
dmex c87d3e67bc Update to latest SDK 2024-09-22 12:58:26 +10:00
dmex 5bf7f29306 Update graphs and guisup types 2024-09-09 01:35:03 +10:00
dmex 284f445345 Add graph callback support 2024-09-08 19:49:25 +10:00
dmex 870a671c19 Add PhLoadCursor, PhSetCursor, PhLoadArrowCursor, PhLoadDividerCursor 2023-05-23 22:38:15 +10:00
dmex 90df78e278 Add PhGetWindowContextEx, PhSetWindowContextEx, PhRemoveWindowContextEx 2023-05-23 22:28:43 +10:00
dmex 4732857bc5 Revert "Add ParentDC"
This reverts commit 82b5e90186.
2023-05-16 15:09:06 +10:00
dmex 82b5e90186 Add ParentDC 2023-04-14 19:58:01 +10:00
dmex d8999318ff Remove unnecessary GetParent 2023-04-13 04:34:53 +10:00
dmex 66712db345 Improve SDK settings support and abstraction 2023-02-10 02:44:38 +11:00
dmex ed18a177b8 Add HRGN_FULL 2022-12-21 03:28:38 +11:00
dmex fc7f0d9947 Fix typo in previous commit 7a7d94640 2022-09-24 12:37:27 +10:00
dmex 7a7d94640b Cleanup types for CreateDIBSection 2022-09-24 08:14:17 +10:00
dmex 39ae5a5bbe Fix tray icon text DPI awareness 2022-09-24 04:28:23 +10:00
dmex 072f5dfca3 Fix graph redrawing during initialization 2022-09-24 04:01:27 +10:00
henrypp 5744c9cba4 Per Monitor V2 DPI aware support (thanks to henrypp!) (#1347) 2022-09-16 00:08:12 +10:00
Johnny Shaw c6e44b2fea Update copyright and license (#1256) 2022-06-13 20:33:49 -06:00
dmex 9c8d830910 Use phlib window contexts for better window performance 2021-11-23 02:12:40 +11:00
dmex 45cb485d4f Sync many performance improves, latest changes and bug fixes (#1021)
* Add Win11 support for KPH and Win11 types for PHNT.
* Add support for X65599 hashes improving performance by 70% in most cases.
* Add support for highlighting protected system processes.
* Add support for showing Bound connections on the network tab.
* Add support for processor energy statistics (can be enabled via options window).
* Add support for freeze/unfreeze processes on Win11 via process context menu.
* Add support for showing COM thread apartment via process threads window.
* Reduces memory and improves performance for querying process command lines and filenames.
* Improves performance for querying performance counters.
* Improves performance for graph controls.
* Fixes wcslen performance regression improving performance by 90% in most cases.
* Fixes graph tooltips not being being hidden when mouse leaves window.
* Fixes issues with tray icons when explorer.exe has crashed or deadlocked.
* Fixes main window not getting focused in some cases.
* Fixes eventlog message about realtime trace listeners for some users.
* Fixes UserNotes database lookups when no entries improving runtime performance.
* Fixes UTF8 image export names.
* Fixes extra main window padding added by tab control.
* Plus many other minor changes and fixes.
2021-10-31 21:05:41 +11:00
dmex 9fbac6f8a7 Add graph dark theme tooltips 2020-05-06 01:50:30 +10:00
dmex 96c4b39508 Update resources, Fix vs19 warnings 2019-11-14 15:10:35 +11:00
dmex 5953b8677b Improve GDI handle checks 2019-07-18 02:52:21 +02:00
dmex 810d6b2b71 Update sdk includes 2018-07-25 00:13:17 +10:00
dmex 31a86763f9 Remove old code, Add comments 2018-05-18 04:07:42 +10:00
dmex bb6bc8cbd3 Readability improvements 2018-05-03 04:03:48 +10:00
dmex 05a0bed451 Always display tooltips even when the window doesn't have focus (https://wj32.org/processhacker/forums/viewtopic.php?t=186) 2018-01-20 08:02:00 +11:00
dmex beaefdac4c Add text trayicon support, Update View->Tray Icons menu 2018-01-20 05:56:46 +11:00
dmex 57e6350e6b Tidy up code 2017-11-17 11:01:58 +11:00
dmex 1fd80ebcc8 Improve ImageBaseAddress handling, Fix bootstrap resource lookup (1/2) 2017-07-03 01:57:44 +10:00
dmex d06f6610b0 Fix github file encoding issues 2017-04-27 19:12:40 +10:00
dmex 6a02c5b02f Update window procedure callbacks 2017-02-12 02:09:07 +11:00
Wen Jia Liu 1989541f2f Reorder #include statements 2016-04-10 14:24:00 +10:00
Wen Jia Liu 9c59091e87 Add .def file for exports; Reduce compilation time; Reorganize header files 2016-02-25 16:58:43 +11:00
Wen Jia Liu 15f97f975a Update dates 2016-02-09 13:24:00 +11:00
Wen Jia Liu 6f1f4a34df Don't draw max data point labels that will get covered by the fade-out 2016-02-08 21:00:01 +11:00