Commit Graph

315 Commits

Author SHA1 Message Date
dmex e7fffcc8ee Improve UI theming and search control behavior
This changeset overhauls several UI infrastructure paths: it adds richer column drag/drop visuals, expands the search box with fuzzy matching and match-range APIs, and refactors theme handling (including Explorer-style palette support, buffered/non-client paint cleanup, and new theme file utilities). It also hardens core behavior with many reliability fixes, such as bounded HTTP download buffering, safer process/service enumeration and handle ownership updates, improved window/context lifecycle handling, DPI/layout fixes, and broader consistency updates across dialog/list-view drawing and helper APIs.
2026-10-02 13:27:30 +10:00
dmex 66e276b763 Improve phlib API compatibility and utilities
This change updates phlib with broader native API compatibility shims, new CRC32/CRC32C tables, and safer utility helpers. It also fixes a number of synchronization, formatting, environment, and process-creation edge cases, adds correlation-vector support, hardens SID conversion and image-resource loading, and cleans up several Windows compatibility fixes across the library.
2026-09-30 00:45:00 +10:00
dmex 6fdcdc7bf5 Improve phlib helpers and annotations
Improve phlib utility correctness and API contracts across GUI, memory, math, and SIMD support. This updates `PhSendMessageTimeout` to return `NTSTATUS`, fixes pointer subtraction and tick/time macros, adds null guards around image list helpers, and corrects a debug rectangle comparison.

The change also expands public helper coverage with heap, image-directory, 128-bit math, delta-clamping, and SIMD utility declarations, while adding SAL/NTAPI annotations so callers get clearer success/failure and nullability guarantees.
2026-09-25 15:31:30 +10:00
dmex 879d80bdfa Add null checks in window context 2026-07-10 04:33:39 +10:00
dmex d66321177b Fix various theme tab, search, and propsheet 2026-07-09 08:36:18 +10:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex a8427b1a5a Fix theme mode handling and UI redraw issues 2026-06-27 22:47:03 +10:00
dmex 0ea39a7a80 Update guisup.c 2026-06-27 21:21:18 +10:00
dmex ca6af0ea2d Refactor UI buffering and propsheet behavior 2026-06-27 17:00:05 +10:00
dmex 6de9210dc4 Add GPU adapter stats option; directdraw/guisup fixes 2026-06-21 23:24:15 +10:00
dmex 7fedbc2fc1 Add V2 toast support, UI tweaks, settings schema
Introduce V2 toast notification support and a dedicated STA toast pump thread with synchronous marshalling, progress updates, hide/release helpers, and action callbacks. Add settings.schema.json for editor validation. UI and UX fixes: add advanced setting editor dialog, handle groupbox z-ordering/theming and remove WS_EX_TRANSPARENT, clear mini-info selections on left click, and pick initial mini-info section based on single enabled tray icon. Add DPI-aware process property buttons update (PhpUpdateProcessPropButtonsDpi) and export PhReferenceFont. Concurrency/listing changes: use NoFence variants for process list insertion/removal. Misc: add resource viewer, update headers and build/project files.
2026-06-17 12:15:26 +10:00
dmex 3dd6e12089 Add PhPropSheetNew and PhScrollNew controls 2026-06-15 22:54:54 +10:00
dmex a505af0969 Enhance miniinfo graphs & zombie process handles 2026-06-15 12:56:06 +10:00
dmex 5f4f40fd82 Build and bug fixes 2026-06-15 06:39:23 +10:00
Johnny Shaw 515b451a23 guisup revert clipping workaround 2026-06-07 14:22:28 -06:00
Johnny Shaw 0c8673a4b6 OnlineChecks settings update and partner prompt 2026-06-07 13:26:02 -06:00
dmex 0b5209066a Add buffered paint/theme support and helpers 2026-05-28 05:06:20 +10:00
dmex 0983971180 Improve layout manager and centering
Make various fixes and harden the layout manager:

- Ensure root window gets WS_CLIPCHILDREN|WS_CLIPSIBLINGS if missing to avoid painting issues.
- Add null/rect checks: return NULL when allocation or PhGetWindowRect fail in PhAddLayoutItem/PhAddLayoutItemEx to avoid using invalid items.
- Use FlagOn() for PH_LAYOUT_TAB_CONTROL checks.
- Implement centering logic for items that are anchored to neither side (horizontal and vertical) instead of raising STATUS_NOT_IMPLEMENTED.
- Use SWP_NOREDRAW when moving windows to suppress intermediate redraws, and issue a single RedrawWindow for items with PH_LAYOUT_IMMEDIATE_RESIZE after the deferred batch completes to avoid flicker.
- Minor documentation update and remove an outdated commented hack.

These changes prevent crashes with destroyed windows, fix layout behaviour for unanchored controls, and reduce visual flicker during layout updates.
2026-05-21 05:43:38 +10:00
dmex 1263ae4d44 Update guisup.c 2026-05-17 21:08:48 +10:00
dmex 686a328413 Handle property-sheet WM_DPICHANGED and add tab-control layout helper 2026-05-11 18:46:14 +10:00
dmex 251cd35c41 Add PhGetSystemDpiForProcess and DPI defaults 2026-05-09 16:27:06 +10:00
dmex 2ef762fd90 #2904 2026-05-07 00:54:04 +10:00
dmex 671509c799 Update guisup.c 2026-05-05 21:06:16 +10:00
Zack-src 24cc2560ac guisup: skip background erasure on combobox selection invalidation (#2900) 2026-05-05 20:57:04 +10:00
dmex 5e28232a16 PhGetMarginDpiValue 2026-05-03 05:49:05 +10:00
dmex 9467d5f646 Improve DPI handling, icon scaling, metrics (#2894) 2026-05-02 09:13:06 +10:00
dmex a6443d07c0 Remove global PhSystemDpi, PhSmallIconSize, PhLargeIconSize
Eliminate the main-window-DPI globals that bleed across dialogs on
secondary monitors. Window-aware code now passes its own DPI:

- Delete PhSystemDpi, PhSmallIconSize, PhLargeIconSize and
  PhGuiSupportUpdateSystemMetrics; remove the mainwnd.c invocation
  on WM_DPICHANGED.
- PhGetApplicationIcon and PhGetStockApplicationIcon now require a
  WindowDpi parameter; PhGetApplicationIconEx is folded into
  PhGetApplicationIcon. PhGetStockApplicationIcon keeps the shared
  icon contract via a 4-slot DPI-keyed cache so multiple monitors
  coexist without thrash.
- All ~50 callers updated to source DPI from their owning window
  (PhGetWindowDpi for hwnd-bearing call sites; PhGetTaskbarDpi for
  the tray icon; PhGetSystemDpi for window-class registration and
  parentless task dialogs).
- PhSetApplicationWindowIcon now thin-wraps PhSetApplicationWindowIconEx
  with PhGetWindowDpi(hwnd), so the 63 legacy call sites get
  per-window-DPI icons without per-site edits.
- srvprv.c and mainwnd.c read PhProcessImageListWindowDpi instead
  of PhSystemDpi/PhSmallIconSize.X for service and process icons.
2026-04-26 22:49:05 +10:00
dmex 0f83f734dd Add enum flag helpers, font/DPI and API fixes 2026-04-23 07:37:06 +10:00
dmex 736945e66e add CONST qualifiers to static sort function arrays and use proper _CoreCrt* function-pointer types; 2026-04-10 16:01:36 +10:00
dmex 34c51e5a7a Add PhEnumDesktops 2026-03-31 12:20:47 +11:00
dmex ec73cb1f4e Add PhCreateImagingFactory 2026-03-25 01:23:46 +11:00
dmex 7565b445b8 Add PhGetDllProcedureAddressZ 2026-02-21 02:37:48 +11:00
dmex 2249f994cd Add PhIsAppThemed 2026-02-12 19:54:27 +11:00
dmex 7117fec29c Swap WICImagingFactory VendorMicrosoft for VendorMicrosoftBuiltIn 2026-01-31 19:07:54 +11:00
dmex 0bcba66aa0 Reorganize functions into basestring.c 2026-01-16 15:26:29 +11:00
dmex 64b718a11e Update guisup.c 2026-01-16 08:58:35 +11:00
dmex 4e477590b0 Return ULONG instead of LONG_PTR - window styles are always 32-bit unsigned values 2026-01-16 07:50:47 +11:00
dmex 29a65fb94a Update window enumeration 2026-01-14 06:28:58 +11:00
dmex cd52136486 Add PhEnumWindowsEx, PhEnumGetWindow, PhBuildHwndList 2026-01-13 17:40:18 +11:00
dmex d64be6b4f7 Add PhOpenWindowProcess 2025-12-31 09:53:43 +11:00
dmex c6b3f07a2e Update guisup.c 2025-12-22 06:04:53 +11:00
dmex c7963c98e0 Update guisup.c 2025-12-16 16:13:07 +11:00
dmex bd9effd7b0 Update documentation and types 2025-12-12 19:42:59 +11:00
dmex f6224b9615 Update comments, Update SAL annotations, Fix typos and memory leak 2025-12-06 08:22:09 +11:00
dmex 400d9a0ef1 Add SysInfoShowCpuSpeedPerCpu 2025-09-28 18:01:44 +10:00
dmex c7d45698f0 Tidy up 2025-09-23 04:36:46 +10:00
dmex 5d225d409f Add PhGetUserObjectInformation 2025-09-22 19:21:15 +10:00
dmex 89defc9229 Update comments 2025-09-20 08:52:56 +10:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex 34a02d895e Update guisup.c 2025-06-05 08:30:21 +10:00