_IManipulationEvents::ManipulationStarted Method

Handles the event for when manipulation or inertia begins.

Syntax

HRESULT ManipulationStarted(
  [in]  FLOAT x,
  [in]  FLOAT y
);

Parameter

  • x [in]
    The origin x-coordinate in user-defined coordinates.

  • y [in]
    The origin y-coordinate in user-defined coordinates.

Rückgabewert

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

Hinweise

Manipulation events are generated for both the IInertiaProcessor and IManipulationProcessor interfaces. If you are using the values from the TOUCHINPUT structure in calls to ProcessDown, the coordinates will be in hundredths of a pixel.

Beispiele

The following code shows an implementation of the ManipulationStarted method.


HRESULT STDMETHODCALLTYPE CManipulationEventSink::ManipulationStarted( 
    /* [in] */ FLOAT x,
    /* [in] */ FLOAT y)
{
    m_cStartedEventCount ++;

    // place your code handler here to do any operations based on the manipulation

    return S_OK;
}
    
    

Anforderungen

Mindestens unterstützter Client

Windows 7

Mindestens unterstützter Server

Windows Server 2008 R2

Header

Manipulations.h (include Manipulations.h)

Siehe auch

Adding Manipulation Support to Unmanaged Code

Handling Inertia in Unmanaged Code

_IManipulationEvents

Methods