Windows CE 5.0待机界面定制之一 - Taskbar的位置

第一步:
修改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/TASKBAR
build -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.def
makefile内容结束
SOURCES的内容:
!if 0
Copyright (c) 1999-2000 Microsoft Corporation.  All rights reserved.
!endif
!if 0
Leo.Zheng modofied
copy explorer.res from D:/WINCE500/PUBLIC/SHELL/OAK/LIB/[CPU Type]/RETAIL/ to D:/WINCE500/PUBLIC/SHELL/OAK/LIB/[CPU Type]/RETAIL/0804/
!endif
TARGETNAME=explorer
TARGETTYPE=PROGRAM
RELEASETYPE=OAK
TARGETLIBS= /
   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_make
build –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成功)

 

posted @ 2016-03-08 21:13  91program  阅读(335)  评论(0编辑  收藏  举报