Microsoft DirectX 9.0

CGenericList::AddBefore

The AddBefore method inserts an item or list before the specified position.

Syntax

POSITION AddBefore(
    POSITION p,
    OBJECT *pObj
);

Parameters

p

Position before which to insert the list. If p is NULL, this method adds the item to the tail of the list.

pObj

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

Return Value

Returns the position indicator for the inserted item.

Syntax

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

Parameters

pos

Position before which to insert the list.

pList

Pointer to the list to insert.

Return Value

Returns TRUE if successful. Otherwise, returns FALSE.

See Also