Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

自訂 Windows 7 任務列縮圖:大小、間距、邊距、延遲全掌控(附原始碼與編譯工具)

編輯:Win7 系統基礎知識

Windows 7 超級任務列的縮圖預設:200px 寬、16px 間距、400ms 延遲。覺得太小、太擠、反應太慢?透過修改登錄檔即可全面客製化,甚至能把縮圖拉大到能直接看影片的程度。本文提供完整 VB.NET 原始碼與編譯後工具,一鍵套用、一鍵還原。

可調整參數對照表

登錄檔鍵值路徑預設值說明
MaxThumbSizePxHKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband200縮圖最大寬度(像素)
MinThumbSizePx200縮圖最小寬度
ThumbSpacingXPx16水平間距
ThumbSpacingYPx16垂直間距
TopMarginPx16上邊距
BottomMarginPx16下邊距
LeftMarginPx16左邊距
RightMarginPx16右邊距
ExtendedUIHoverTimeHKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced400滑鼠停留毫秒數才顯示縮圖

效果展示

放大縮圖後可直接看影片:

大尺寸縮圖

調整 X/Y Spacing 後間距明顯變大:

調整間距效果

核心程式碼片段

Private Sub btnApplySettings_Click(...)
    My.Computer.Registry.SetValue(taskbandPath, "MaxThumbSizePx", maxSizeTrackBar.Value, RegistryValueKind.DWord)
    ' ... 其餘 7 個 Taskband 參數 ...
    My.Computer.Registry.SetValue(advancedPath, "ExtendedUIHoverTime", dtTrackBar.Value, RegistryValueKind.DWord)
    ' 重啟 explorer.exe 即時生效
    For Each p As Process In Process.GetProcessesByName("explorer")
        p.Kill()
    Next
    Process.Start("explorer.exe")
End Sub

一鍵還原預設值

Private Sub btnRestoreDefaults_Click(...)
    My.Computer.Registry.SetValue(taskbandPath, "MaxThumbSizePx", 200, RegistryValueKind.DWord)
    ' ... 全部還原為預設值 ...
    My.Computer.Registry.SetValue(advancedPath, "ExtendedUIHoverTime", 400, RegistryValueKind.DWord)
    ' 同樣重啟 explorer.exe
End Sub

完整專案結構

  • Imports Microsoft.Win32
  • 主表單 mainForm 包含 9 個 TrackBar + TextBox 雙向綁定
  • 輸入驗證:僅允許數字與 Backspace,最大值限制(縮圖 512px、延遲 9999ms)
  • 載入時自動讀取目前登錄檔值填入介面

工具介面截圖

使用說明

  1. 下載編譯好執行檔(或自行用 VS 編譯)
  2. 以一般使用者權限執行(不需管理員)
  3. 調整滑桿/輸入數值 → 「套用設定」 → 畫面閃一下即生效
  4. 想回預設 → 「還原預設值」

修改登錄檔後無需重開機,僅重啟 explorer.exe 即時生效,極其方便微調。

Copyright © Windows教程網 All Rights Reserved