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