IUIAnimationManager::CreateAnimationVariable method (uianimation.h)

Creates a new animation variable.

Syntax

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

Parameters

[in] initialValue

The initial value for the new animation variable.

[out] variable

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

Requirement Value
Minimum supported client Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header uianimation.h
DLL UIAnimation.dll

See also

IUIAnimationManager

IUIAnimationVariable