自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Windows Mobile 6.5開發(fā)環(huán)境搭建以及變化

移動開發(fā)
本文將介紹Windows Mobile 6.5開發(fā)環(huán)境搭建以及變化,雖然微軟發(fā)布了Windows Phone 7操作系統(tǒng),但是Windows Mobile 6.5系統(tǒng)仍然有很大的市場占有量,對開發(fā)者來說同樣很重要。

搭建開發(fā)環(huán)境,按照以下順序安裝。

◆安裝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屏幕的模擬器,高亮的一項的是真機,當你需要在真機上調(diào)試時使用這項,可見6.5版本的開發(fā)工具包并沒有帶真機調(diào)試項:

模擬器

2.讓我們來看下Windows Mobile 6.5 Professional在開發(fā)方面的變化。

Today Plug-in

你為6.5以前版本編寫的今日插件,仍然可以在6.5版本使用,6.5的策略讓默認方案與其它子項互斥,當你選中自己的插件時,默認方案前面的勾將自動去掉。右下圖顯示的即是默認方案。

默認方案

默認方案

6.5版本改變的部分是:現(xiàn)在不允許把你自己編寫的插件的Type設為5,當你設置為5的時候,系統(tǒng)會把你改回成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的插件,每次橫豎屏切換,系統(tǒng)都會發(fā)送4次WM_PAINT消息!微軟在6.5版本優(yōu)化了這個問題。下圖就是優(yōu)化之后的當橫豎屏切換時系統(tǒng)發(fā)送的消息截圖:

橫豎屏切換

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下面并不能實現(xiàn)真正的窗口透明,目前我們開發(fā)的應用程序都是采用將下一個窗口的DC先在當前窗口繪制一遍,實現(xiàn)透明按鈕也是這個道理,其實都是偽透明,那么任何實現(xiàn)真正透明的窗口?這個問題我的繼續(xù)思考,不知讀者您能否解答^^

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.

 

內(nèi)核以及驅(qū)動開發(fā)部分沒 有太多變化,因為它仍然是基于Windows CE 5.x系統(tǒng)。當Windows Mobile 7.0推出時,因為是基于Windows CE 6.0系統(tǒng),所以驅(qū)動編寫也將發(fā)生大的變化。Windows CE發(fā)生的兩次大的內(nèi)核變化,一次是Windows CE 3.0,一次就是現(xiàn)在的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開發(fā)初體驗
  2. Windows Mobile 6.5定于10月6日發(fā)布
  3. 微軟發(fā)布Windows Mobile 6.5開發(fā)工具包
  4. Windows Mobile 6.5:新主題、新插件、新個性
責任編輯:佚名 來源: googleads
相關推薦

2010-05-23 10:29:29

Widget開發(fā)

2009-06-23 10:06:03

2011-09-08 10:04:07

Windows MobWidget

2009-05-18 09:06:37

微軟WMWindows Mob

2009-05-19 10:44:23

微軟Windows mob移動OS

2011-04-25 17:17:55

Gesture APIWindows Mob

2009-06-04 14:18:44

Windows Mob工具包

2012-02-09 17:07:50

Titanium MoTitaniumWindows 7

2009-06-01 08:48:44

微軟Windows Mob移動OS

2009-03-12 08:34:54

2009-04-28 09:47:44

WM6.5Windows Mob智能手機

2009-02-17 10:41:38

Windows Mob操作高清照片

2010-03-26 09:13:00

Windows Mob系統(tǒng)更新

2010-02-02 17:04:38

Windows MobWindows Mob下載

2009-02-17 09:54:34

2011-09-08 10:18:09

Windows MobWidgets

2009-02-22 09:04:51

WM 6.5SoftKey改進

2013-07-31 12:50:39

搭建Windows PWindows Pho

2011-06-07 11:35:38

Windows Pho

2009-02-17 09:08:48

Windows MobMy Phone截圖
點贊
收藏

51CTO技術棧公眾號