SECLayoutFactory::CreateNodeWnd

Create a node window object and and automatically plug into layout framework.

Defined in: FACTORY.CPP

Syntax

CreateNodeWnd(CWnd* pAttachWnd,CWnd* pParent,SECLayoutNode* pParentNode,CRuntimeClass* pRuntimeClass)

CreateNodeWnd(HWND hAttachWnd,CWnd* pParent,SECLayoutNode* pParentNode,CRuntimeClass* pRuntimeClass)

CreateNodeWnd(UINT nIDAttachWnd,CWnd* pParent,SECLayoutNode* pParentNode,CRuntimeClass* pRuntimeClass)

Return Value

SECLayoutNodeWnd* pointer to newly created window layout node

Parameters

pAttachWnd

CWnd pointer to window to autoattach layout node

hAttachWnd

Handle of window to autoattach layout node

nIDAttachWnd

Child control ID of window to autoattach layout node

pParent

CWnd pointer to parent of window to attach layout node

pParentNode

Layout node parent of newly created window node

classNodeWnd

Class type for object creation.

lpszTitle

Optional string title name to associate with the newly created node.

Comments

The returned pointer should *NOT* be deallocated by the caller. The layout factory will automatically deallocate on object destruction.

See Also

CreateNode