CLayoutManagerRootBase::CreateLayoutNode

Creates a new layout node of an specific class, and optionally initializes it.

Defined in: LayoutManager.h

Syntax

ISomeLayoutInterface* aNode = CreateLayoutNode(__uuidof(SomeLayoutNodeClass), aNode[, pParentNode[, ID]]);

ILayoutNode* aNode = CreateLayoutNode(__uuidof(SomeLayoutNodeClass), pParentNode, ID);

ILayoutNode* aNode = CreateLayoutNode(__uuidof(SomeLayoutNodeClass),pParentNode, hwnd);

Parameters

guid

Unique identifier of the class of the node requested.

aNode

Interface pointer that helps define the type of the pointer returned in the templatized version.

pParentNode

Pointer to the node that will occupy the parent position in the tree of the node being created. If NULL (default value) a parent is not assigned, the node needs to be explicitly inserted into the layout tree.

ID

Window identifier of a child window that will be associated with the newly create node. Default is -1, indicating no window.

hwnd

Handle to a child window that will be associated with the newly created node. Valid only for window nodes. Default is null.

Function Template Arguments

LayoutInterface

A layout interface derived from ILayoutNode, which will be the type of the interface pointer returned by the templatized version.