Window Frame Shadow Registry Settings in Windows
In Windows, user-specific configurations for active window frame
shadow rendering are managed through the Desktop Window Manager (DWM)
and system visual effect policies stored within the
HKEY_CURRENT_USER hive. This article details the exact
registry paths, key values, and binary masks responsible for controlling
whether drop shadows appear beneath active application windows for
individual user accounts.
Primary Registry Locations
Window frame shadows rely on settings across two primary locations in the Windows Registry:
1. Desktop Window Manager (DWM)
The direct rendering behavior for window composition and frame effects is located under:
HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM
- Key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM - Value Name:
EnableWindowColorization(DWORD) - Purpose: Dictates DWM composition features for window borders, accents, and surrounding transparency/shadow effects.
2. Desktop Visual Effects Configuration
The actual global toggle for “Show shadows under windows” (as seen in the Windows Performance Options GUI) is encoded into the user desktop preferences at:
HKEY_CURRENT_USER\Control Panel\Desktop
- Value Name:
UserPreferencesMask(REG_BINARY) - Purpose: This binary mask stores multiple visual
effect flags. The specific bit for window drop shadows controls whether
active and inactive window frames render drop shadows.
- Enabling or disabling “Show shadows under windows” modifies the first and third bytes of this binary array.
3. Visual Effects Profile Tracking
Windows also tracks user preference states for performance options under:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects
- Value Name:
VisualFXSetting(DWORD)0= Let Windows choose what’s best for my computer1= Adjust for best appearance (Shadows enabled)2= Adjust for best performance (Shadows disabled)3= Custom settings
Applying Changes
Modifications made directly to these registry keys require a restart
of the Desktop Window Manager process (dwm.exe) or a user
sign-out and sign-in to take effect.