Wi
dowsMobile65开发环境搭建以及变化
1搭建开发环境,按照以下顺序安装。→安装VisualStudio2008我安装的试用的TeamSuite版:VS2008TeamSuite90DayTrialCHSX1429243iso→安装MicrosoftActiveSy
c45msi→安装Wi
dowsMobile6Professio
alSDKRefreshmsi如果需要60版本的中文模拟器,需要安装中文包:Wi
dowsMobile6Professio
alImagesCHSmsi→安装Wi
dowsMobile65Professio
alDeveloperToolKitCHSmsi如下图,第一项QVGA即是65版本320x240屏幕的模拟器,高亮的一项的是真机,当你需要在真机上调试时使用这项,可见65版本的开发工具包并没有带真机调试项:
f2让我们来看下Wi
dowsMobile65Professio
al在开发方面的变化。TodayPlugi
你为65以前版本编写的今日插件,仍然可以在65版本使用,的策略65让默认方案与其它子项互斥,当你选中自己的插件时,默认方案前面的勾将自动去掉。右下图显示的即是默认方案。
65版本改变的部分是:现在不允许把你自己编写的插件的Type设为5,当你设置为5的时候,系统会把你改回成4。关于4和5在65以前版本差距还是很大的,请看我的笔记:HKEY_LOCAL_MACHINESoftwareMicrosoftTodayItems下的Type为DWORD类型。IfthevalueofTypeis4acustomplugi
isaddedtotheTodayScree
IfthevalueofTypeis5theplugi
isacustompi
edplugi
我自己编写的插件设置为5的时候就解决了横竖屏切换太慢问题,慢的原因是Type为4的插件,每次横竖屏切换,系统都会发送4次WM_PAINT消息微软在65版本优化了这个问题。下图就是优化之后的当横竖屏切换时系统发送的消息截图:
fType另外还有以下值:IfthevalueofTypeis0iti
dicatesareservedplugi
thatdisplaysthedeviceow
eri
formatio
isaddedtotheTodayScree
IfthevalueofTypeis1iti
dicatesareservedplugi
thatdisplaystheAppoi
tme
tsisaddedtotheTodayScree
IfthevalueofTypeis2iti
dicatesareservedplugi
thatdisplaystheMailisaddedtotheTodayScree
IfthevalueofTypeis3iti
dicatesareservedplugi
thatdisplaystheTasksisaddedtotheTodayScree
IfthevalueofTypeis6theplugi
isacustomperma
e
tpi
edplugi
f说到为什么使用蜂窝式菜单,记得我以前看过一篇文章有介绍,因为正六边形可以使触摸面积最大相连的。
“Agridisthemostefficie
tmethodtopackasma
ysquaresi
toa
areaaspossiblebut
otforcirclesThemathematicallymostefficie
tmethodtoarra
ge
o
overlappi
gcirclesaproblemcalled“spherepacki
r