getOutlineChild

Get an outline node child.
getOutlineChild([in] LONG outlineHandle, [in] int idx, [out, retval] LONG *childHandle)
This function returns the idxth child of the specified outline tree node. idx must be between 0 and n-1, where n is the value returned by getOutlineNumChildren.

Pass zero as the outline argument to specify the root node, i.e., to get the top-level outline entries.

VB6:
' start out at the root node scanOutline 0 ... Private Sub scanOutline(outlineHdl As Long) { If outlineHdl <> 0 Then ' do something with this outline entry Else ' this is the root node, which isn't a real entry - it has no title or target End If ' now scan the children of this node (if any) n = viewer.getOutlineNumChildren(outlineHdl) For i = 0 To n-1 scanOutline viewer.getOutlineChild(outlineHdl, i) Next i End Sub
getOutlineNumChildren