Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Complete method finishes the current manipulation and stops inertia on the inertia processor.
Syntax
HRESULT Complete();
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
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | manipulations.h (include Manipulations.h) |