Microsoft DirectX 9.0

IAMTimelineTransable::TransAdd

The TransAdd method adds a transition to the object. An object can have multiple transitions, but they must not overlap in time. Transitions must fall within the time boundaries of the object.

Syntax

HRESULT TransAdd(
    IAMTimelineObj *pTrans
);

Parameters

pTrans

Address of the IAMTimelineObj interface of the transition to add.

Return Value

Returns one of the following HRESULT values:

Value Description
S_OK Success.
E_INVALIDARG Cannot insert the transition.
E_NOINTERFACE pTrans is not a pointer to a transition.

Remarks

If the transition overlaps an existing transition, the method returns E_INVALIDARG.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also