SECLayoutNode::ChangeChildNodePosition

BOOLSECLayoutNode::ChangeChildNodePosition(SECLayoutNode*pNodeToChange, SECLayoutNode*pNodeTarget, BOOLbAfter)

Change the position of one child node relative to another.

Defined in: LAYOUTND.CPP

Return Value

TRUE on successful move, FALSE on error.

Parameters

pNodeToChange

Child node to receive positional change.

pNodeTarget

Child node pNodeToChange is positioned relative to.

bAfter

Controls insertion modification - before or after.

Comments

If bAfter is TRUE, pNodeToChange is moved immediately after pNodeTarget. If bAfter is FALSE, pNodeToChange is moved immediately before pNodeTarget. If pNodeTarget is NULL, pNodeToChange is inserted at start or end of list, based on bAfter setting (start if bAfter is false, end if true). pNodeToChange must be an immediate child. pNodeTarget must be NULL, or an immediate child.

See Also

AddLayoutNode