Commit Graph

16 Commits

Author SHA1 Message Date
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +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 d0c1cbae2d Remove PhGetKernelFileName2 2025-11-17 22:09:31 +11:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex f92eab7083 Update SDK for const compatibility
Resolves C++ SDK compatibility issues
2024-10-17 04:33:07 +11:00
Dart Vanya 8d153c383c Theme support fixes (#2185) 2024-09-13 21:33:57 +10:00
dmex 9a0c737fdf Force constant for SID objects 2023-07-06 03:49:57 +10:00
dmex 8bfe86b43d Add ImageListSetIconSize (partially fixes #1751) 2023-06-10 10:36:22 +10:00
dmex 3b3d017c4d Remove memory allocations for PhGetTokenUser 2023-02-15 04:23:45 +11:00
dmex 3220cf7fa1 Add PhGetKernelFileName2 2023-01-31 11:59:40 +11:00
dmex df92429732 Update DialogBox to PhDialogBox 2023-01-17 02:22:06 +11:00
dmex ec15269546 Fix imagelist flags and some DPI issues 2022-09-24 02:43:25 +10:00
dmex 6fd35cb630 Tidy up PhSetImagelist 2022-09-16 00:55:54 +10:00
henrypp 5744c9cba4 Per Monitor V2 DPI aware support (thanks to henrypp!) (#1347) 2022-09-16 00:08:12 +10:00
dmex 24408d0eca Add PhNtPathSeperatorString and SysAllocStringLen 2022-07-29 01:21:40 +10:00
dmex 7cf151713a Update solution 2022-06-16 11:25:11 +10:00