共用方式為


currentState property

Returns the current state of a manipulation event.

This property is read-only.

 

Syntax

HRESULT get_currentState(
  [out] long *state
);

Property values

Type: long

Value Condition
MS_MANIPULATION_STATE_STOPPED 0

The content has stopped moving and there is no active manipulation.

MS_MANIPULATION_STATE_ACTIVE 1

A contact is touching the surface and interacting with content.

MS_MANIPULATION_STATE_INERTIA 2

The content is still moving, but contact with the surface has ended (finger, pen, mouse lifted).

MS_MANIPULATION_STATE_PRESELECT 3

A contact has initiated a cross-slide interaction.

Supported on Windows 8.1 and later.

MS_MANIPULATION_STATE_SELECTING 4

A cross-slide interaction has crossed the selection distance threshold; selection is activated.

Supported on Windows 8.1 and later.

MS_MANIPULATION_STATE_DRAGGING 5

A cross-slide interaction has crossed the drag distance threshold; dragging is activated.

Supported on Windows 8.1 and later.

MS_MANIPULATION_STATE_CANCELLED 6

A cross-slide interaction has been cancelled. This can happen for any of the following reasons:

Supported on Windows 8.1 and later.

MS_MANIPULATION_STATE_COMMITTED 7

The touch pointer was released and the manipulation has completed.

Supported on Windows 8.1 and later.

 

See also

onmsmanipulationstatechanged

IDOMMSManipulationEvent::lastState