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.

IUIAnimationVariable::SetVariableIntegerChangeHandler method

Specifies an integer variable change handler. This handler is notified of changes to the integer value of the animation variable.

Syntax


HRESULT SetVariableIntegerChangeHandler(
  [in, optional]  IUIAnimationVariableIntegerChangeHandler *handler
);

Parameters

handler [in, optional]

An integer variable change handler. The specified object must implement the IUIAnimationVariableIntegerChangeHandler interface or be NULL. See Remarks.

Return value

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

Remarks

Passing NULL for the handler parameter causes Windows Animation to release its reference to any handler object you passed in earlier. This technique can be essential for breaking reference cycles without having to call the IUIAnimationManager::Shutdown method.

IUIAnimationVariableIntegerChangeHandler::OnIntegerValueChanged is called only if the rounded value has changed since the last update.

Requirements

Minimum supported client

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

Minimum supported server

None supported [desktop apps | Windows Store apps]

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

See also

IUIAnimationVariable
IUIAnimationVariable::SetVariableChangeHandler
IUIAnimationVariableChangeHandler

 

 

Community Additions

Show:
© 2014 Microsoft