Windows Mobile 6.5开发环境搭建以及变化
创始人
2024-07-26 19:50:52
0

搭建开发环境,按照以下顺序安装。

◆安装Visual Studio 2008(我安装的试用的Team Suite版:VS2008TeamSuite90DayTrialCHSX1429243.iso)

◆安装Microsoft ActiveSync 4.5.msi

◆安装Windows Mobile 6 Professional SDK Refresh.msi(如果需要6.0版本的中文模拟器,需要安装中文包:Windows Mobile 6 Professional Images (CHS).msi)

◆安装Windows Mobile 6.5 Professional Developer Tool Kit (CHS).msi

如下图,第一项QVGA即是6.5版本320x240屏幕的模拟器,高亮的一项的是真机,当你需要在真机上调试时使用这项,可见6.5版本的开发工具包并没有带真机调试项:

模拟器

2.让我们来看下Windows Mobile 6.5 Professional在开发方面的变化。

Today Plug-in

你为6.5以前版本编写的今日插件,仍然可以在6.5版本使用,6.5的策略让默认方案与其它子项互斥,当你选中自己的插件时,默认方案前面的勾将自动去掉。右下图显示的即是默认方案。

默认方案

默认方案

6.5版本改变的部分是:现在不允许把你自己编写的插件的Type设为5,当你设置为5的时候,系统会把你改回成4。

关于4和5在6.5以前版本差距还是很大的,请看我的笔记:

HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items下的Type为DWORD类型。

If the value of Type is 4, a custom plug-in is added to the Today Screen.

If the value of Type is 5, the plug-in is a custom pinned plug-in.

我自己编写的插件设置为5的时候就解决了横竖屏切换太慢问题,慢的原因是Type为4的插件,每次横竖屏切换,系统都会发送4次WM_PAINT消息!微软在6.5版本优化了这个问题。下图就是优化之后的当横竖屏切换时系统发送的消息截图:

横竖屏切换

Type另外还有以下值:

If the value of Type is 0, it indicates a reserved plug-in that displays the device owner information is added to the Today Screen.

If the value of Type is 1, it indicates a reserved plug-in that displays the Appointments is added to the Today Screen.

If the value of Type is 2, it indicates a reserved plug-in that displays the Mail is added to the Today Screen.

If the value of Type is 3, it indicates a reserved plug-in that displays the Tasks is added to the Today Screen.

If the value of Type is 6, the plug-in is a custom permanent pinned plug-in.

clip_image002[8]

说到为什么使用蜂窝式菜单,记得我以前看过一篇文章有介绍,因为正六边形可以使触摸面积最大(相连的)。

蜂窝式菜单

  “A grid is the most efficient method to pack as many squares into an area as possible, but not for circles. The mathematically most efficient method to arrange non-overlapping circles - a problem called “sphere packing” - is actually and as you might have guessed by now, hexagonal. ”

Windows下面并不能实现真正的窗口透明,目前我们开发的应用程序都是采用将下一个窗口的DC先在当前窗口绘制一遍,实现透明按钮也是这个道理,其实都是伪透明,那么任何实现真正透明的窗口?这个问题我的继续思考,不知读者您能否解答^^

Gesture(手势) APIs

A new set of APIs is being introduced that will enable application developers to take advantage of the new Windows Mobile 6.5 touch gesture framework. The gesture APIs allow an application to handle touch gesture input and provide a visually consistent experience with the rest of the device UI.

The APIs are defined in the following header files:

Note that the gesture APIs are only available on the Windows Mobile Classic and Professional SKUs. The headers and libraries are installed in the Windows Mobile SDK\Pocket PC\ folder. Samples that make use of these APIs are installed into the Windows Mobile 6.5 Developer Tool Kit\Samples\ folder.

 

内核以及驱动开发部分没 有太多变化,因为它仍然是基于Windows CE 5.x系统。当Windows Mobile 7.0推出时,因为是基于Windows CE 6.0系统,所以驱动编写也将发生大的变化。Windows CE发生的两次大的内核变化,一次是Windows CE 3.0,一次就是现在的Windows CE 6.0。下面讨论的是Windows Mobile 6.5带来的部分新功能。

3.Windows Mobile 6.5 Developer Tool Kit自带的Samples,全部都是介绍Gesture的使用。

第一个例子

Code Sample Name: Gesture Metrics Sample

Feature Area: Touch

Description:

This sample demonstrates how to use the Gesture APIs. More specifically, it

demonstrates:

- use of RKGetGestureMetrics

- handling WM_GESTURE GID_HOLD, GID_SELECT and GID_DOUBLESELECT messages

This sample was designed to show how to use RKGetGestureMetrics and interpret

its results.

This example also shows how to handle GID_HOLD, GID_SELECT and GID_DOUBLESELECT

messages.

Relevant APIs/Associated Help Topics:

RKGetGestureMetrics

RKGetGestureInfo

GESTUREMETRICS

WM_GESTURE

第二个例子

Code Sample Name: Code Sample Name: Physics Engine Sample

Feature Area: Touch

Description:

This sample demonstrates how to use the Gesture APIs. More specifically, it

demonstrates:

- use of Physics Engine

- handling WM_GESTURE GID_PAN, GID_SCROLL and GID_END

This example shows how to handle gesture scrolling and how to properly use

Physics Engine.

Relevant APIs/Associated Help Topics:

RKCreatePhysicsEngine

RKQueryPhysicsEngine

RKDestroyPhysicsEngine

RKGetGestureInfo

PHYSICSENGINESTATE

PHYSICSENGINEINIT

WM_GESTURE

第三个例子

Code Sample Name: WAG Sample

Feature Area: Touch

Description:

This sample demonstrates how to use the Gesture APIs. More specifically, it

demonstrates:

- use of Window Auto Gesture API

This example shows how to handle gesture scrolling using Window Auto Gesture API.

Relevant APIs/Associated Help Topics:

RKSetWindowAutoGesture

RKGetAnimateMessageInfo

WAGINFO

ANIMATEMESSAGEINFO

【编辑推荐】

  1. Windows Mobile 6.5 Widgets开发初体验
  2. Windows Mobile 6.5定于10月6日发布
  3. 微软发布Windows Mobile 6.5开发工具包
  4. Windows Mobile 6.5:新主题、新插件、新个性

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
各种千兆交换机的数据接口类型详... 千兆交换机有很多值得学习的地方,这里我们主要介绍各种千兆交换机的数据接口类型,作为局域网的主要连接设...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
规避非法攻击 用好路由器远程管... 单位在市区不同位置设立了科技服务点,每一个服务点的员工都通过宽带路由器进行共享上网,和单位网络保持联...
范例解读VB.NET获取环境变... VB.NET编程语言的使用范围非常广泛,可以帮助开发人员处理各种程序中的需求,而且还能对移动设备进行...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...