SECLayoutFactory::CreateNode
Creates a layout node object with the specified runtime class
Defined in: FACTORY.CPP
Syntax
SECLayoutNode* CreateNode(LPCTSTR lpszTitle)
SECLayoutNode* CreateNode(SECLayoutNode* pParentNode, LPCTSTR lpszTitle)
SECLayoutNode* CreateNode(const SECLayoutNodeClassFactory& classNode, LPCTSTR lpszTitle)
SECLayoutNode* CreateNode(SECLayoutNode* pParentNode, const SECLayoutNodeClassFactory& classNode, LPCTSTR lpszTitle)
Return Value
SECLayoutNode* Pointer to newly created layout node
Parameters
lpszTitle
Optional string title name to associate with the newly created node.
classNode
Class type for object creation.
pParentNode
Parent node of newly created object.
Comments
The returned pointer should *NOT* be deallocated by the caller. The layout factory will automatically deallocate on object destruction.
Example
Factory.CreateNode(NODE_CLASS(SECLNScale));