Skip to main content

Windows Dev Center

IDirectManipulationViewport::SetManualGesture method

Sets which gestures are ignored by Direct Manipulation.

Syntax


HRESULT SetManualGesture(
  [in] CROSS_SLIDE configuration
);

Parameters

configuration [in]

One of the values from CROSS_SLIDE.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Use this method to specify which gestures the application processes on the UI thread. If a gesture is recognized, it will be passed to the application for processing and ignored by Direct Manipulation.

Examples

The following example shows how zoom gestures can be ignored by Direct Manipulation and handled by the application, which may have custom zoom behavior implementation.


HRESULT hr = pViewport->SetManualGesture(DIRECTMANIPULATION_GESTURE_PINCH_ZOOM);

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationViewport is defined as 28b85a3d-60a0-48bd-9ba1-5ce8d9ea3a6d

See also

IDirectManipulationViewport