Compact RDP connection bar
Shrinks the top connection bar, optionally hides pin/quality/lock buttons, keeps drag working
Author: hsb5
Shrinks the top connection bar of Remote Desktop Connection (Ctrl+Alt+Home).
The bar normally spans a large fixed width: a small button group on the left,
the hostname in the middle, the window buttons on the right. This mod keeps the
hostname zone, keeps the button groups, and drops the empty space between them.
Works with any number of toolbars. A toolbar whose buttons are all hidden needs
no width and is simply not given any, which is what happens once the pin and
quality buttons are hidden.
The right toolbar carries the window buttons - minimize, restore and close.
Each can be hidden separately; hide all three and the bar shrinks to the
hostname alone. A single remaining toolbar keeps the side it originally sat on,
so hiding the window buttons does not move the pin group to the right.
The toolbar contents can change during a session. The mod reapplies the configured
hiding rules whenever buttons are inserted or updated, while preserving buttons
that mstsc itself keeps hidden.
Screenshots
| Before |
After |
After2 |
After3 |
After4 |
 |
 |
 |
 |
 |
Settings
- Text area width - target width of the hostname zone, scaled for DPI.
Raised automatically when the hostname needs more room.
- Hide pin button - hides the pin (keep on top) button.
- Hide quality button - hides the connection quality indicator.
- Hide lock button - hides the lock icon mstsc shows next to the quality
indicator. The button is only present in some sessions; when it is absent,
nothing changes.
- Hide device-selection button - hides the optional monitor/device-selection button used in some RDP modes (for example tablet sessions); it opens device or display selection. The button is identified internally by command id 7 and bitmap index 8.
- Hide app commands button - hides the optional small triangle/menu button in the left toolbar, which opens the app/session commands menu. It is identified internally by command id 3 and bitmap index 0.
- Hide minimize / restore / close - hide the window buttons on the
right. Hiding the close button removes the only visible way to disconnect;
the session can still be closed from the taskbar icon, or Ctrl+Alt+Break
leaves full screen so the bar and the window controls come back.