<dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><small id="yhprb"></small><dfn id="yhprb"></dfn><small id="yhprb"><delect id="yhprb"></delect></small><small id="yhprb"></small><small id="yhprb"></small> <delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"></dfn><dfn id="yhprb"></dfn><s id="yhprb"><noframes id="yhprb"><small id="yhprb"><dfn id="yhprb"></dfn></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><small id="yhprb"></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn> <small id="yhprb"></small><delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn>

新聞中心

EEPW首頁(yè) > 嵌入式系統 > 設計應用 > WinCE桌面墻紙及圖標更換

WinCE桌面墻紙及圖標更換

作者: 時(shí)間:2011-02-24 來(lái)源:網(wǎng)絡(luò ) 收藏

網(wǎng)上關(guān)于WinCE更換墻紙的文章一大堆,我也來(lái)寫(xiě)一篇,和網(wǎng)上已有的文章沒(méi)什么區別。以前寫(xiě)的WinCE Blog大部分都是BSP相關(guān)的,以后打算寫(xiě)點(diǎn)WinCE系統定制方面的,就從這里開(kāi)始吧。

關(guān)于WinCE的墻紙,是在注冊表中設置的,編譯完WinCE工程以后,所有的reg文件中的內容都會(huì )被合并為reginit.ini文件。打開(kāi)這個(gè)文件,可以找到如下內容:

[HKEY_CURRENT_USERControlPanelDesktop]

"wallpaper"=\Windows\WindowsCE.bmp

默認情況下,顯示的是WindowsCE.bmp文件,但是被編譯工程的release目錄下并沒(méi)有WindowsCE.bmp文件,倒是可以看到windowsce_qvgap.bmpwindowsce_vgal.bmp兩個(gè)文件。這里需要看一下WINCE600publicshellfilesshell.bib文件中的定義就明白了。

說(shuō)白了,更換墻紙就是改注冊表設置。最簡(jiǎn)單的方法就是修改project.bibproject.reg文件。首先在project.bib文件中添加如下內容:

kungfuPanda.bmp d:WINCE600OSDesignsEmulatorEmulatorRelDirDeviceEmulator_ARMV4I_Releasewall.bmpNK S

然后在project.reg文件添加如下內容:

[HKEY_CURRENT_USERControlPanelDesktop]

"wallpaper"="\Windows\kungfuPanda.bmp"

最后將這兩個(gè)文件拷貝到工程編譯的release目錄下面,重新Makeimg就可以了。在WinCE啟動(dòng)以后,我們會(huì )看到墻紙已經(jīng)被更換,同樣還能看到桌面上的”My Device””Recycle Bin”,現在我想把他們的圖標和名字也更換了,當然還要從注冊表入手。相關(guān)注冊表配置如下:

; Drives (My Device)

[HKEY_CLASSES_ROOTCLSID{000214A0-0000-0000-C000-000000000046}]

"DisplayName"=mui_sz:"ceshell.dll,#20482"

"DefaultIcon"="\Windows\ceshell.dll,-4354"

[HKEY_CLASSES_ROOTCLSID{000214A0-0000-0000-C000-000000000046}InprocServer32]

@="\Windows\ceshell.dll"

; Recycle Bin (BitBucket)

[HKEY_CLASSES_ROOTCLSID{000214A1-0000-0000-C000-000000000046}]

"DisplayName"=mui_sz:"ceshell.dll,#20481"

"DefaultIcon"="\Windows\ceshell.dll,-4352"

"AltIcon"="\Windows\ceshell.dll,-4355"

[HKEY_CLASSES_ROOTCLSID{000214A1-0000-0000-C000-000000000046}InprocServer32]

@="\Windows\ceshell.dll"

簡(jiǎn)單解釋一下:

“DisplayName”:顯示的名字,名字來(lái)源于ceshell.dll中的資源,其中My Device的資源ID20482,Recycle Bin的資源ID20481。

“DefaultIcon”:顯示的圖標,圖標來(lái)源于ceshell.dll中的資源,其中My Device的圖標資源ID4354,Recycle Bin的圖標資源ID4352。

“AltIcon”:是指Recycle Bin中有東西時(shí)候的圖標,大家都知道Recycle Bin空的時(shí)候和有東西的時(shí)候,圖標顯示是不一樣的,這個(gè)圖標資源來(lái)源于ceshell.dll中的圖標資源,ID4355。

實(shí)際上,他們都來(lái)源于ceshell.dll中的資源文件,這個(gè)我們需要看一下WINCE600publicshelloakhpcceshellui目錄下的resource.hceshui_base.rc兩個(gè)文件,在resource.h中找到如下定義:

#define IDS_DISPLAY_RECYCLEBIN 0x5001 //20481

#define IDS_DISPLAY_DRIVES 0x5002 //20482

#define IDI_BITBUCKET 0x1100 //4352

#define IDI_BITBUCKET_FULL 0x1103 //4355

#define IDI_MYCOMPUTER 0x1102 //4354

這些就是ID資源的定義,根據這些可以在cehui_base.rc中找到相應的資源,如下:

IDS_DISPLAY_RECYCLEBIN "Recycle Bin"

IDS_DISPLAY_DRIVES "My Device"

IDI_BITBUCKET ICON DISCARDABLE "RES\bitbucket.ico"

IDI_BITBUCKET_FULL ICON DISCARDABLE "RES\bitbucket_full.ico"

IDI_MYCOMPUTER ICON DISCARDABLE "RES\mycomputer.ico"

如果想更換圖標或者改名字,修改cehui_base.rc就可以了。首先把自己的圖標拷貝到WINCE600publicshelloakhpcceshelluires目錄下面,然后在resource.h中定義幾個(gè)新的ID,在cehui_base.rc中將新定義的ID和相應的圖標或者名字相關(guān)聯(lián)。

接下來(lái)打開(kāi)工程的project.reg文件,添加下面的內容:

; Drives (My Device)

[HKEY_CLASSES_ROOTCLSID{000214A0-0000-0000-C000-000000000046}]

"DisplayName"=mui_sz:"ceshell.dll,#20736"

"DefaultIcon"="\Windows\ceshell.dll,-4624"

[HKEY_CLASSES_ROOTCLSID{000214A0-0000-0000-C000-000000000046}InprocServer32]

@="\Windows\ceshell.dll"

; Recycle Bin (BitBucket)

[HKEY_CLASSES_ROOTCLSID{000214A1-0000-0000-C000-000000000046}]

"DisplayName"=mui_sz:"ceshell.dll,#20737"

"DefaultIcon"="\Windows\ceshell.dll,-4625"

"AltIcon"="\Windows\ceshell.dll,-4355"

[HKEY_CLASSES_ROOTCLSID{000214A1-0000-0000-C000-000000000046}InprocServer32]

@="\Windows\ceshell.dll"

這些配置是為了修改顯示名字和圖標,主要是修改ceshell.dll中的資源ID。

最后打開(kāi)工程的命令行窗口,切換到WINCE600publicshelloakhpcceshell目錄,運行build進(jìn)行編譯,然后重新編譯WinCE工程。

最后編譯完成以后,運行WinCE就可以看到墻紙以及My DeviceRecycle Bin的名字和圖標都被更換了。如圖:

我把原來(lái)的My Device更換為Root,把Recycle Bin更換為Box,把墻紙更換為功夫熊貓的墻紙了??瓷先ミ€不錯啊。


linux操作系統文章專(zhuān)題:linux操作系統詳解(linux不再難懂)


評論


相關(guān)推薦

技術(shù)專(zhuān)區

關(guān)閉
国产精品自在自线亚洲|国产精品无圣光一区二区|国产日产欧洲无码视频|久久久一本精品99久久K精品66|欧美人与动牲交片免费播放
<dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><small id="yhprb"></small><dfn id="yhprb"></dfn><small id="yhprb"><delect id="yhprb"></delect></small><small id="yhprb"></small><small id="yhprb"></small> <delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"></dfn><dfn id="yhprb"></dfn><s id="yhprb"><noframes id="yhprb"><small id="yhprb"><dfn id="yhprb"></dfn></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><small id="yhprb"></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn> <small id="yhprb"></small><delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn>