Export (0) Print
Expand All

IInertiaProcessor::Complete method

The Complete method finishes the current manipulation and stops inertia on the inertia processor.

Syntax


HRESULT Complete();

Parameters

This method has no parameters.

Return value

Returns S_OK on success, otherwise returns an error code such as E_FAIL.

Remarks

The Complete method raises the ManipulationCompleted event on an _IManipulationEvents interface implementation.

Examples



    // set properties on the IInertiaProcessor interface
    this->m_spIInertProc->put_DesiredRotation(spin);    
	 
    // complete any unprocessed inertia
    this->m_spIInertProc->Complete();
	 
    // reset the processor
    this->m_spIInertProc->Reset();		  
	 
    // If you have implemented a timer that handles inertia processing,
    // this should be started as well and the processor will raise
    // Manipulation* events
		  

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Manipulations.h (include Manipulations.h)

See also

CompleteTime
IInertiaProcessor
Methods

 

 

Community Additions

ADD
Show:
© 2014 Microsoft