Microsoft SDK for Java

addChild

This method of the Direct3dRMFrame Class adds a child frame to a frame hierarchy.

Syntax

public void addChild(Direct3dRMFrame child);

Parameters

child The Direct3dRMFrame object that will be added as a child.

Remarks

If the frame being added as a child already has a parent, this method removes it from its previous parent before adding it to the new parent.

To preserve an object's transformation, use the getTransform method to retrieve the object's transformation before using the addChild method. Then, reapply the transformation after the frame is added.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.