Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IUIAnimationTimerUpdateHandler::OnUpdate method

Handles update events from the timer.

Syntax


HRESULT OnUpdate(
  [in]  UI_ANIMATION_SECONDS       timeNow,
  [out] UI_ANIMATION_UPDATE_RESULT *result
);

Parameters

timeNow [in]

The current timer time, in seconds.

result [out]

Receives a member of the UI_ANIMATION_UPDATE_RESULT enumeration, indicating whether any animation variables changed as a result of the update.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See Windows Animation Error Codes for a list of error codes.

Remarks

This method is used by the UIAnimationTimer object to update the state of the UIAnimationManager object. The UIAnimationTimer object calls UIAnimationTimerEventHandler::OnPostUpdate only when calls to this method return a result of UI_ANIMATION_UPDATE_VARIABLES_CHANGED.

Requirements

Minimum supported client

Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

None supported

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

See also

IUIAnimationTimerUpdateHandler
IUIAnimationTimerEventHandler::OnPreUpdate
IUIAnimationTimerEventHandler::OnPostUpdate

 

 

Show:
© 2017 Microsoft