Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Windows XP系統教程 >> XP系統基礎知識 >> Win XP桌面個性化完全手冊(下)

Win XP桌面個性化完全手冊(下)

日期:2017/2/7 16:13:06      編輯:XP系統基礎知識
  上期我們講了打造個性化系統的第一部份《Windows XP桌面個性化完全手冊(上)》,本期我們講個性化系統的下半部份。

  第二講:系統文件的修改(我來代續吧,Naco肯定是不會介意的啦,呵呵)

  其實有很多的UI是保存在一些可執行文件裡的(.exe .dll .ocx等),比如按鈕圖標、動畫、菜單文字、程序和對話框的布局等等,編輯這些文件可以讓你隨心所欲的改變你的Windows操作界面,這並不像想象中的那麼難。

  1. 備份

  既然是系統文件,相信大家都不敢隨便刪掉的,所以一定要做好備份工作,而且還應當清楚的標明該文件的地理位置。一旦修改失敗,立即啟動到DOS,還原備份文件。再有就是,一個好的習慣就是改完一個文件,就備份、覆蓋、重啟、檢驗,再改下一個,最忌的是改了 一堆文件,同時覆蓋,結果出了問題,卻不知道到底是哪個文件改壞了。請記住:在編輯任何系統文件之前,備份之!

  2. 工具  

  我會盡量介紹免費工具給大家的

  * 資源編輯器

  -> Resource Hacker,相信不少人都已經知道這個優秀的免費軟件了,最為讓人稱心的是它有完美的漢化。  

  -> PE Resource Editor,同樣是免費軟件,而且代碼公開,但可能需要兩個delphi 6的運行庫(->vcl60.rar ->rtl60.rar)。完全不比Resource Hacker遜色。  

  -> eXeScope,共享軟件,可以編輯16位的Binary文件。  

  -> ResBuilder,TGTSoft(就是做StyleXP的那家)出品的一個功能強大的免費軟件。其主頁介紹為:"With ResBuilder, skin/logon/shellstyle designers have a simple way to alter alpha mask bitmaps in a resource file. ResBuilder auto-converts 32 bit BMPs to PNGs and back so you can edit the 8 bit alpha mask in your favorite editor. Good for LogonUI.EXE files. Also has a text and hex editor."。另外,它還能編輯被集成到可執行文件裡的.xml .ini,十分吸引人。

  * HEX編輯器

  既然有UltraEdit,我就不說別的了

  * 文件替換

  我們知道,當文件被使用時它是不能被替換的,而大多關於UI的系統文件都是在啟動時就被啟用了的,這就為我們替換系統文件帶來麻煩,下面的兩個軟件可以幫助我們。  

  -> CopyLock,Windows 9x/2k,免費軟件,"is a small program that allows the replacement of one or many files that are currently in use (e.g. the system files like comctl32.dll.) "

  -> Replacer,Windows 2k/XP,免費軟件,"is an easy to use system file exchanger for XP/2k. It uses a drag and drop interface to obtain input."

  * 其他

  -> ResThief,免費軟件,當把一個可執行或其他Binary文件拖到它上頭後,它會把其中的所有資源文件展開並放到一個目錄裡。

  -> SmartView,免費軟件,"is a free Windows program that allows you to select a directory and you can view all the bitmaps, metafiles, icons and icons held in executables as thumbnails."

  3. 修改介紹

  * 16位和32位文件

  前面提到的幾個資源編輯器都能修改32位文件,但我們依然會碰到16位的文件(特別是在Windows 9x系統裡),這時候就只有用eXeScope了。

  * 編輯文件

  通常的方法,只是簡單的從文件中提取資源文件(位圖、動畫等等)、編輯、替換到文件裡即可。或是修改對話框內的布局,修改文件內的文字等等,都可以在編輯器內簡單操作就可完成。位圖(.bmp .ico等)、動畫(.avi等)的編輯工具可以選用自己習慣的來。

  需要注意的是所修改的資源文件的文件大小、顏色索引、透明顏色的指定等等,一個比較好的方法是編輯原始的資源文件。

  通常的,透明顏色會是紫紅色(R,G,B:255,0,255),但有時是在位圖的背景色裡。

  經常會碰到一個位圖文件裡包含了幾個不同功能的按鈕的圖,而且在另外的圖裡可能還有對應的鼠標懸停和鼠標按下的圖,一個較好的方法是編輯原圖。

  對於XP,我們會看到有不少位圖是有Alpha效果的(如:explorer的工具欄內的按鈕),一個有效的辦法是當用資源編輯器提取文件後,立刻改名為.png(原來為.bmp),然後用photoshop之類的軟件編輯保存,再用MS Paint打開並另存為.bmp即可。(注:此法未經本人測試)

  4. .dll文件內的HTML編輯除了位圖、對話框等,還有一些東西是以HTML保存的,如IE的"about"(shdoclc.dll,section 23)和"friendly HTTP error message pages"(shdoclc.dll,section 2110)。Resource Hacker能很方便的編輯這個的,編輯後點擊"編譯腳本"就可以了。但對於替換HTML裡引用的.gif/.jpg等圖,則不適於用Resource Hacker,而eXeScope則能勝任愉快。另外,你完全可以用.gif動畫來替換任何.gif。


  一些系統文件的列表及說明  

  文件: Appwiz.cpl

  資源編號: 位圖 #5001

  版本編號: All

  描 述: "Bitmap on the left in the "Adding a new shortcut" dialog. Color palette can be succesfully increased."  

  文件: Browselc.dll

  資源編號: 字串表 #807/775

  版本編號: IE 5.5+

  描 述: "Third numbered line, saying "A&ddress", is the address text you see at the address bar in IE 5.5+. Deleting content between "" will delete whole line, hit compile and save. #775 is the "Links" toolbar text, leave the line there, and an empstry space between " "."  

  文件: Browseui.dll

  資源編號: 位圖 #261-268

  版本編號: IE 5.x+

  描 述: "IE 5 toolbar buttons, colored and grayscale versions, for different resolutions and preferences. Tip from beaker, replace the grayscale version with the colored one too! Also for IE6 in all OS's but XP. If using IE6 in XP, these are in shell32.dll."  

  資源編號: 位圖 #545

  版本編號: All

  描 述: Glyphs bitmap associated with IE's explorer bars.  

  文件: Comctl32.dll

  資源編號: 位圖 #124/(125)

  版本編號: Win 9x/?

  描 述: "The Open/Save as... dialog upper-right icons. Color palette is a real mess to increase, basically something like a full 256 colored one should work, first color being used for transparency. RLE compression and 24bit didn't work under Win98se. You can download a color palette that worked for me here."  

  文件: Comdlg32.dll

  資源編號: 位圖 #800

  版本編號: Win 9x/?

  描 述: "The Open/Save as... dialog upper-right "desktop" icon. Color palette can be succesfully increased, if so try to have the background correspond to your color sheme. Example here."  

  文件: *.cpl

  版本編號: All

  描 述: "Bitmaps, icons displayed for and in control panel item dialogs are generally available in the responsible .cpl file, found in the windows\system or winnt\system32 directories. Some icon changing can be done in the registry, but most can't (some are 16-bit files):"

  "Accesibility options", #110 in access.cpl (32)

  "Add new hardware", #602 in sysdm.cpl (16)

  "Automatic updates" icon: wuaucpl.cpl (32)

  "Date and time" icon: datetime.cpl (32)

  "Display properties" is #40 in desk.cpl (32)

  "Fonts" icon is #400 in main.cpl (32)

  "Gaming options" is icon #102 in joy.cpl (32)

  "Internet options" icon is #4487 in inetcpl.cpl (32)

  "Keyboard" icon is #200 in main.cpl (32)

  "Modems" icon: modem.cpl (16)

  "Mouse" icon is #100 in main.cpl (32)

  "Network" icon: netcpl.cpl (16)

  "ODBC data sources: ODBCCP32.CPL (32)

  "Passwords" icon: passwords.cpl (32)

  "Power options" is #202 in powercfg.cpl (32)

  "Printers" icon is icon #300 in main.cpl (32)

  "Regional settins" icon: intl.cpl (32)

  "Software" icon: appwiz.cpl (32)

  "Sounds and multimedia" icon: mmsys.cpl (32)

  "System" : icon: sysdm.cpl (16)

  "Users" icon is #1323 in inetcpl.cpl (32)

  文件: Explorer.exe

  資源編號: 菜單 #204

  版本編號: All

  描 述: "You can rename startmenu items here. Watch out a bit with the "&" sign, it goes before the letter that is used as keyboard shortcut; make sure they all differ (in XP only applies to classic startmenu)." 

  資源編號: 位圖 #157-167

  版本編號: All

  描 述: "This is the startmenu sidebanner, bitmap number differs a bit in different OS versions. You might prefer changing the banner with Tclock as it offers much more unique options, is free and low on resources!"  

  資源編號: 位圖 #7010/7011

  版本編號: Win XP

  描 述: "Log off and turn off buttons (normal and hover) as used by the new XP startpanel, using classic view."


  文件: Ieshwiz.dll資源編號: 位圖 #132

  版本編號: Win 98/?

  描 述: "Left bitmap in the "Customize this Folder" dialog in Win 98. Image is shown with a bigger border that has the color of the first (0,0) pixel."  

  文件: Logonui.dll

  資源編號: ...

  版本編號: Win XP

  描 述: Login graphics for Windows XP. More info at the startup screen page. 

  文件: Msgina.dll

  資源編號: 位圖 #101-123

  版本編號: Win 2k

  描 述: "Microsoft logo's appearing on the "starting" and login box while logging in (also seen when hitting ctrl-alt-del), including the animated bar. Replacing the file differs a bit with other files, read here."  

  文件: Mshtml.dll

  資源編號: 指針 #50/51

  版本編號: IE 5.x

  描 述: "IE 5 stopped using default cursors, but leaves you with "the hand". You can relace this and the one with the stop sign (unavailable) with your own 256-colored cursors."  

  資源編號: 位圖 #2030/2031

  版本編號: IE ?/5.x

  描 述: The two bitmaps used when web images can't be displayed or are loading.  

  資源編號: 圖標 #2661

  版本編號: IE 6

  描 述: Titlebar icon for IE6 (for earlier versions check shdocvw.dll).  

  文件: Msoeres.dll

  資源編號: 位圖 #16

  版本編號: OE 5.x

  描 述: Icons used for the folder view (upperleft pane). Don't mess with color palette!

  資源編號: 位圖 #38/39

  版本編號: OE 5.x

  描 述: "Toolbar buttons, colored and grayscale version. Don't mess with color palette (but you can have the colored version twice)."  

  資源編號: 2110

  版本編號: OE 5.x

  描 述: "The "2110" section holds the .html and .gif/.jpg items for the OE startpage."

  文件: Mstasks.exe

  資源編號: 圖標 #401/403

  版本編號: Win 9x/?

  描 述: "Maybe you are forced to have the Task manager in your Systray because you have an anti-virus or something, change the icons here."  

  文件: Netshell.dll

  資源編號: 圖標 #190-193/195

  版本編號: Win 2k/XP

  描 述: "Flashing monitors as appear in your systray when connected, Win 2k/XP. For some replacements, check rnaapp.exe."  

  文件: Ntoskrnl.exe

  資源編號: 位圖 #1

  版本編號: Win 2k

  描 述: "This is the Windows 2000 startup screen. Important, check here first (!) and find some done by philsci at Interface Workshop."  

  資源編號: 位圖 #5

  版本編號: Win 2k

  描 述: "Microsoft logo appearing on the "you can now shutdown your computer" dialog."

  文件: Resdll.dll

  資源編號: 位圖 #926 ?

  版本編號: NS 4.x

  描 述: Netscape toolbar buttons in several bitmaps.  

  文件: Rnaapp.exe

  資源編號: 圖標 #110-114

  版本編號: Win 9x

  描 述: "Flashing monitors as appear in your systray when connected, Win 9x only (for 2k/XP see netshell.dll); color palette can be increased, but you need to apply this mod for it to show (no need in Win Me). Check out these replacements (click preview to download icons), by resp. digitalspyder, beaker (inspired by and designed to match Scrows prime/preemo set), plastic, digitalspyder again and (?!):"  

  文件: Shdoc401.dll

  資源編號: 位圖 #264-271

  版本編號: Win 9x/?

  描 述: bitmaps in Folder Options dialog. Image (large) border is cut. Color palette can be succesfully increased. 

  文件: Shdoclc.dll

  資源編號: 位圖 #533

  版本編號: IE 5.x

  描 述: bitmap in the downloading file dialog (When you are asked if you want to Open or Save to disk). Color palette can be succesfully increased.  

  資源編號: 字串表 #189

  版本編號: All

  描 述: "The "Folders" title of the folders explorer bar panel."  

  資源編號: 字串表 #1211/1214

  版本編號: IE 5.x+

  描 述: "Default search engine url when you type something in the IE address bar, %s is replaced by the search query. You can also add new search engines, check here."

  文件: Shdocvw.dll

  資源編號: 圖標 #110

  版本編號: IE ?/5.x/6

  描 述: "".Url file" icon displayed in title- and statusbar of IE. With IE6 it changes only statusbar icon."  

  資源編號: Avi #256

  版本編號: IE ?/5.x

  描 述: Animation on the downloading file progress dialog.  

  資源編號: 圖標 #20789

  版本編號: IE ?/5.x/6

  描 述: The little yellow triangle in IE status bar when the page contains errors.
Copyright © Windows教程網 All Rights Reserved