CGenericList::AddAfter

 
Microsoft DirectShow 9.0

CGenericList::AddAfter

The AddAfter method inserts an item or list after the specified position.

Syntax

  POSITION AddAfter(
    POSITION p,
    OBJECT *pObj
);

Parameters

p

Position after which to add the item. If p is NULL, the method adds the item to the head of the list.

pObj

Pointer to an object of type OBJECT (the template type).

Return Value

Returns the position indicator of the inserted item.

Syntax

  BOOL AddAfter(
    POSITION pos,
    CGenericList<OBJECT> *pList
);

Parameters

pos

Position after which to insert the list.

pList

Pointer to the list to insert.

Return Value

Returns TRUE if successful, or FALSE otherwise.

Requirements

**  Header:** Declared in Wxlist.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also