IDirect3DRMFrame::AddChild

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.