第一步:修改taskbar.cpp文件,使Windows CE 5.0的taskbar移动到窗口的顶端。更改如下文件:/WINCE500/PUBLIC/SHELL/OAK/HPC/EXPLORER/TASKBAR/taskbar.cpp注:由于修改的源代码分散在taskbar.cpp中,故未附上源代码第二步:编译cd /WINCE500/PUBLIC/SHELL/OAK/HPC/EXPLORER/TASKBARbuild -cd第三步:创建目录/WINCE500/PLATFORM/[BSP名]/explore_make第四步:建立两个文件:makefile和SOURCES。makefile的内容:
# Copyright (c) 1999-2000 Microsoft Corporation. All rights reserved.## DO NOT EDIT THIS FILE!!! Edit ./sources. if you want to add a new source# file to this component. This file merely indirects to the real make file# that is shared by all the components#!INCLUDE $(_MAKEENVROOT)/makefile.defmakefile内容结束SOURCES的内容:!if 0Copyright (c) 1999-2000 Microsoft Corporation. All rights reserved.!endif!if 0Leo.Zheng modofiedcopy explorer.res from D:/WINCE500/PUBLIC/SHELL/OAK/LIB/[CPU Type]/RETAIL/ to D:/WINCE500/PUBLIC/SHELL/OAK/LIB/[CPU Type]/RETAIL/0804/!endifTARGETNAME=explorerTARGETTYPE=PROGRAMRELEASETYPE=OAKTARGETLIBS= / D:/WINCE500/PBWorkspaces/[PB工程名]/WINCE500/[BSP_CPU]/cesysgen/sdk/lib/[CPU Type]/retail/coredll.lib / D:/WINCE500/public/shell/oak/lib/[CPU Type]/retail/explorer.lib / D:/WINCE500/PUBLIC/SHELL/OAK/LIB/[CPU Type]/RETAIL/explorer.res / D:/WINCE500/public/shell/oak/lib/[CPU Type]/retail/explorer_ie.lib / D:/WINCE500/PBWorkspaces/[PB工程名]/WINCE500/[BSP_CPU]/cesysgen/sdk/lib/[CPU Type]/retail/uuid.lib / D:/WINCE500/PBWorkspaces/[PB工程名]/WINCE500/[BSP_CPU]/cesysgen/sdk/lib/[CPU Type]/retail/ole32.lib / D:/WINCE500/PBWorkspaces/[PB工程名]/WINCE500/[BSP_CPU]/cesysgen/sdk/lib/[CPU Type]/retail/oleaut32.lib / D:/WINCE500/PBWorkspaces/[PB工程名]/WINCE500/[BSP_CPU]/cesysgen/sdk/lib/[CPU Type]/retail/commctrl.lib / D:/WINCE500/PBWorkspaces/[PB工程名]/WINCE500/[BSP_CPU]/cesysgen/sdk/lib/[CPU Type]/retail/ceshell.lib / D:/WINCE500/PBWorkspaces/[PB工程名]/WINCE500/[BSP_CPU]/cesysgen/oak/lib/[CPU Type]/retail/shcore.lib / D:/WINCE500/public/shell/oak/lib/[CPU Type]/retail/aygutils.lib / D:/WINCE500/public/shell/oak/lib/[CPU Type]/retail/favorites.lib / D:/WINCE500/public/shell/oak/lib/[CPU Type]/retail/taskbar.lib / D:/WINCE500/PBWorkspaces/[PB工程名]/WINCE500/[BSP_CPU]/cesysgen/oak/lib/[CPU Type]/retail/ieceext.lib / D:/WINCE500/public/shell/oak/lib/[CPU Type]/retail/shellaygfuncs.lib / D:/WINCE500/public/shell/oak/lib/[CPU Type]/retail/shellpslayg.lib / SOURCELIBS= /SOURCES= /SOURCES内容结束
第五步:cd /WINCE500/PLATFORM/[平台名]/explore_makebuild –cd注意:编译过程中,可能出错,如下;LINK:fatal eeror LNK1104:cannot open file "..."对应的目录下没有创建相应的目标目录,按错误提示创建目录即可第六步:将explorer.exe,explorer.pdb和explorer.map文件copy到release目录/WINCE500/PBWorkspaces/[PB工程名]/RelDir/XXX_ARMV4I_Release第七步:不用Sysgen,直接Make Image即可(当然前提是工程已经Sysgen成功)