Gesture Messages (Compact 2013)
When the user touches the screen, the touch screen driver recognizes a touch event and passes an array of touch points to the gesture engine. The gesture engine then passes the aray of touch points to each registered gesture recognizer. When a recognizer identifies a gesture, it adds the gesture event into the same message queue that receives the touch events.
The gesture engine always delivers gesture events before any final finger-up event so that the window procedure can process the gesture by calling the GetGestureInfo function and by canceling any action planned for the finger-up touch event.
The following table shows the messages that support direct manipulation and gestures.