IUIAnimationManager2::CreateAnimationVariable method

Creates a new animation variable.

Syntax


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

Parameters

initialValue [in]

The initial value for the animation variable.

variable [out, retval]

The new animation variable.

Return value

If this 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.

Requirements

Minimum supported client

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

Minimum supported server

None supported [desktop apps | Windows Store apps]

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

IID

IID_IUIAnimationManager2 is defined as D8B6F7D4-4109-4d3f-ACEE-879926968CB1

See also

IUIAnimationManager2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft