HRESULT AddChild(LPDIRECT3DRMFRAME lpD3DRMFrameChild);
Adds a child frame to a frame hierarchy.
·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
lpD3DRMFrameChild
Address of the Direct3DRMFrame object that will be added as a child.
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 IDirect3DRMFrame::GetTransform method to retrieve the object's transformation before using the AddChild method. Then reapply the transformation after the frame is added.