Windows Title Bar and Border Padding Registry Path

Windows stores user-specific theme configurations, including window border padding and title bar sizing metrics, directly within the Windows Registry. This article details the exact registry keys responsible for these interface metrics, explains how values are calculated, and shows how to locate and modify them using the Registry Editor (Regedit).

The Registry Location

All user-specific theme border padding and window title bar metrics are stored under the following Registry key:

HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics

Because this path is located under HKEY_CURRENT_USER, any adjustments made here apply exclusively to the currently signed-in user account.

Key Registry Values for Borders and Title Bars

Within the WindowMetrics key, several String (REG_SZ) values govern the dimensions of window borders and caption bars:

How Metric Values Are Calculated

The numerical values for these metrics are stored in twips (a typographic measurement equal to 1/20th of a point) and are represented as negative integers.

To calculate a specific pixel value, use the following formula:

\[\text{Registry Value} = -15 \times \text{Desired Pixels}\]

How to Modify the Settings

  1. Press Windows Key + R, type regedit, and press Enter.
  2. Navigate to: HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics.
  3. Locate the value you wish to edit (e.g., PaddedBorderWidth or CaptionHeight) in the right-hand pane.
  4. Double-click the entry and enter the new negative integer.
  5. Click OK.
  6. Sign out of your Windows account and sign back in (or restart the computer) for the changes to take effect.