IUIAnimationManager2::CreateAnimationVectorVariable method
Creates a new animation variable for each specified dimension.
Syntax
HRESULT CreateAnimationVectorVariable( [in] const DOUBLE *initialValue[cDimension], [in] UINT cDimension, [out, retval] IUIAnimationVariable2 **variable );
Parameters
- initialValue [in]
-
A vector (of size cDimension) of initial values for the animation variable.
- cDimension [in]
-
The number of dimensions that require animated values. This parameter specifies the number of values listed in initialValue.
- 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 three animation variables for the X, Y, and Z coordinates of an object that can move freely within a a three-dimensional space.
Requirements
|
Minimum supported client |
Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|
|
IDL |
|
|
DLL |
|
|
IID |
IID_IUIAnimationManager2 is defined as D8B6F7D4-4109-4d3f-ACEE-879926968CB1 |
See also