SECLayoutNode::RecalcLayout
CRectSECLayoutNode::RecalcLayout(const CRect&rectDesired, BOOLbChildNegotiate, BOOLbStrictRecalc)
Recalculate position of this and all children nodes
Defined in: LAYOUTND.CPP
Return Value
New rectangle position of this node.
Parameters
rectDesired
new desired rectangle for this node
bChildNegotiate
Allow child position negotiation. If enabled, child can influence its final rectangle position.
bStrictRecalc
Force a strict recalculation of all children. If false, only those nodes marked as "dirty" via SetRecalcDirty are recalculated.
Comments
This member is the primary interface for kicking off a new layout recalculation. Based on the paramters passed in, RecalcLayout will position all child nodes as desired, then recursively kick off a RecalcLayout for each in turn. If creating your own layout algorithm, it is recommended you override OnRecalcLayout, rather than this functon.
RecalcLayout only calculates new node positions. Use RealizeNode to apply the new positions to the screen.
See Also