Condividi tramite


Metodo IInertiaProcessor::Complete (manipulations.h)

Il metodo Complete completa la manipolazione corrente e arresta l'inerzia nel processore di inerzia.

Sintassi

HRESULT Complete();

Valore restituito

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

Commenti

Il metodo Complete genera l'evento ManipulationCompleted in un'implementazione dell'interfaccia _IManipulationEvents .

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 (include Manipulations.h)

Vedi anche

CompleteTime

Iinertiaprocessor

Metodi