Improve mini info container painting during resize by enabling `WS_CLIPCHILDREN`, suppressing parent background erase, and switching child sizing to `SetWindowPos` with no-redraw flags. The resize handler now lays out first and invalidates only the child window to avoid unnecessary parent repaints and visual artifacts.
This prevents the main tab selection from activating the main window and stealing foreground focus from the user when starting hidden by default. Focus is still forwarded later via `PhMwpOnSetFocus` when the window is activated. Fixes#2989.
Co-Authored-By: Zeroes1 <Zeroes1@gmail.com>
This changeset tightens cache file path handling in phlib by validating leaf names, honoring native vs Win32 path modes consistently, and using the correct directory creation path. It also fixes several functional regressions across the app and plugins: module list filter refresh after highlight toggles, ETW endpoint/port mapping, aggregate sort field usage, graph child window clipping, safer uninstall status text handling, previous-instance shutdown in setup, and improved window-message timeout handling. Additional updates clean up initialization/casts, remove dead code, and address small correctness issues in formatting and utility logic.
Reworks the TabNew control around message-based helpers and centralized layout flushing, adds new flags/messages (including thin-tab metrics), and improves font/theme/DPI handling, painting, and delete notifications. Page tracking is now synchronized through item-to-page links, with safer delete-all behavior and consistent page index updates after insert/move/delete.
Main window tab handling was migrated to the new TabNew wrappers/atom creation path, including selection and layout save/restore calls, and now resyncs cached page indexes on selection changes so reordered tabs activate the correct page.
Adds a mini-info section callback and supports positioning the popup above its source point, including activation tweaks. Also switches the handle permissions dialog to window context storage, caches control handles in the environment dialogs for cleaner layout/enabled-state updates, and fixes process icon lifetime management to avoid leaking stale icons.