Per-App Titlebar Buttons
Hide selected native titlebar buttons for configured applications
Author: Casket Pizza
Hide or disable selected native Windows titlebar buttons on a per-application
basis.
Add one or more process names in the mod settings and choose whether to affect
the Minimize, Maximize/Restore, and Close buttons for each application.
Process names can be entered with or without the .exe extension. For example,
both taskmgr and taskmgr.exe match Task Manager. Matching is
case-insensitive, and a full executable path is also accepted.
Native titlebar behavior
Windows treats the Minimize and Maximize/Restore buttons as a pair. If only one
of those style flags is removed, Windows may keep both buttons visible and show
the affected button as disabled. Removing both flags removes the pair.
These are native window style flags, so disabling Maximize also disables native
maximize actions such as titlebar double-click and the Maximize system-menu
command while the setting is active.
Windows doesn't provide an independent window style flag for the Close button.
If Close is selected while Minimize or Maximize/Restore is still available,
the Close command is disabled.
If Close is selected and the resulting window has neither Minimize nor
Maximize/Restore available, the mod removes WS_SYSMENU. This removes the
native caption button cluster, and also removes the titlebar icon and the
Alt+Space system menu for that window while the setting is active.
Compatibility
The mod targets standard native Win32 titlebars. Applications that draw their
own titlebars, including some Chromium, Electron, and WinUI applications, may
not respond to these settings.