Commit Graph

220 Commits

Author SHA1 Message Date
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 ef5ddba8c9 Update guisup.h 2026-09-28 16:47:43 +10:00
dmex 162da2d30a Add custom subitem drawing to ExtLV
Extend the extended list-view custom draw path with a subitem draw callback. The control now stores a `PPH_EXTLV_DRAW_SUBITEM` handler, opts into `CDRF_NOTIFYSUBITEMDRAW` when present, and skips default rendering when the callback handles a subitem. A new `ELVM_SETSUBITEMDRAWFUNCTION` message wires the callback into the control.
2026-09-25 15:19:05 +10:00
dmex cd9a320750 Add imagelist drag drop 2026-07-09 09:46:15 +10:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex 41fef7bf7d Add PH_THEME_MODE enum to guisup theme API 2026-06-28 11:14:51 +10:00
dmex a8427b1a5a Fix theme mode handling and UI redraw issues 2026-06-27 22:47:03 +10:00
dmex ca6af0ea2d Refactor UI buffering and propsheet behavior 2026-06-27 17:00:05 +10:00
dmex 4ed3e94a01 Add window targeting API and overlay 2026-06-21 17:22:37 +10:00
dmex 3dd6e12089 Add PhPropSheetNew and PhScrollNew controls 2026-06-15 22:54:54 +10:00
dmex 8d6383298c Update guisup.h 2026-06-15 06:50:21 +10:00
dmex 5f4f40fd82 Build and bug fixes 2026-06-15 06:39:23 +10:00
dmex 0b5209066a Add buffered paint/theme support and helpers 2026-05-28 05:06:20 +10:00
dmex 7d3d0c3330 Add PhEqualRect 2026-05-22 16:12:32 +10:00
dmex 410af838c3 phlib: change listview selection 2026-05-21 06:13:53 +10:00
Johnny Shaw 96db9dbdd5 make _Enum_is_bitflag_ SAL placement consistent with SDK 2026-05-12 17:11:16 -06:00
dmex 686a328413 Handle property-sheet WM_DPICHANGED and add tab-control layout helper 2026-05-11 18:46:14 +10:00
dmex f7fb8a3657 Update guisup.h 2026-05-05 23:02:36 +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 e7ef2ef5af Update guisup.h 2026-04-15 13:44:44 +10:00
dmex 0428b61140 Update guisup.h 2026-04-13 16:05:22 +10:00
dmex fa519d93be Adjust APIs and fix refcount in util 2026-04-13 12:49:24 +10:00
dmex 34016e27d9 Apply SAL annotations fixes and add annotations 2026-04-01 12:11:37 +11:00
dmex 34c51e5a7a Add PhEnumDesktops 2026-03-31 12:20:47 +11:00
dmex b489852462 Add PhGetClassInfo, PhGetClassInfoEx 2026-02-21 23:24:06 +11:00
dmex 2249f994cd Add PhIsAppThemed 2026-02-12 19:54:27 +11:00
dmex 6325685640 Add correct types for compare functions 2026-02-02 19:38:45 +11:00
dmex 0bcba66aa0 Reorganize functions into basestring.c 2026-01-16 15:26:29 +11:00
dmex c1305671c0 Update guisup.h 2026-01-16 08:58:47 +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 d2cfd7f1fb Add listview wrappers and workaround sync issues 2026-01-14 05:51:11 +11:00
dmex cd52136486 Add PhEnumWindowsEx, PhEnumGetWindow, PhBuildHwndList 2026-01-13 17:40:18 +11:00
dmex 0bf14f6fba Update PhPtInRect 2026-01-05 23:17:57 +11:00
dmex 52b39bea83 Add PhWindowIsHung 2025-12-31 09:54:08 +11:00
dmex d64be6b4f7 Add PhOpenWindowProcess 2025-12-31 09:53:43 +11:00
dmex cdd2862931 Update guisup.h 2025-12-31 03:05:03 +11:00
dmex 3873181c03 Update guisup.h 2025-12-22 11:41:03 +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 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex 3f55a60c98 re-organized phlib 2025-05-22 07:48:42 +10:00
dmex 6317244ea6 Restructured common code 2025-05-07 08:29:22 +10:00
dmex 97508e5396 Add PhGetWindowCompositionAttribute 2025-05-06 10:43:42 +10:00
dmex ed6dc3a5fb Update guisup.h 2025-04-09 08:01:49 +10:00
dmex 0c5b05c239 Fix typo and add optional transparent parent 2025-03-26 20:09:35 +11:00
dmex bf4fbcc1ce Move inline fonts to exports 2025-03-22 04:21:07 +11:00