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 |
|
|
IDL |
|
|
DLL |
|
See also
- IUIAnimationTimerUpdateHandler
- IUIAnimationTimerEventHandler::OnPreUpdate
- IUIAnimationTimerEventHandler::OnPostUpdate