Export (0) Print
Expand All

IUIAnimationManager::CreateAnimationVariable method

Creates a new animation variable.

Syntax


HRESULT CreateAnimationVariable(
  [in]            DOUBLE initialValue,
  [out]  IUIAnimationVariable **variable
);

Parameters

initialValue [in]

The initial value for the new animation variable.

variable [out]

The new animation variable.

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

The initial value of an animation variable is specified when the variable is created. After an animation variable is created, its value cannot be changed directly; it must be updated through the animation manager.

An animation variable is typically created to represent each visual characteristic that is to be animated. For example, an application might create two animation variables for the X and Y coordinates of an object that can move freely within a window.

Examples

For an example, see Create Animation Variables.

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

IUIAnimationManager
IUIAnimationVariable

 

 

Community Additions

ADD
Show:
© 2014 Microsoft