Metodo IInertiaProcessor::Reset (manipolazioni.h)

Il metodo Reset inizializza il processore con timestamp iniziale e riavvia inertia.

Sintassi

HRESULT Reset();

Valore restituito

Restituisce S_OK all'esito positivo, in caso contrario , restituisce un codice di errore, ad esempio E_FAIL.

Commenti

Se sono state modificate le proprietà in un oggetto attualmente modificato da inertia, chiamare Completa prima di chiamare Reimposta.

Esempio


    // 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
		  

Requisiti

Requisito Valore
Client minimo supportato Windows 7 [solo app desktop]
Server minimo supportato Windows Server 2008 R2 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione manipulations.h (includere Manipulations.h)

Vedi anche

Operazione completata

Iinertiaprocessor

Metodi