CLayoutManagerRootBase Class

class CLayoutManagerRootBase: public ATL::CMessageMap

This class integrates the layout management logic into the ATL framework by mixing in the layout node tree and providing the plugin for handling windows messages and routing them through the layout nodes.

Defined in: LayoutManager.h

Class Members

void InitLayout(ILayoutNode* pRootNode)

Initializes the layout tree.

void AutoPopulate()

Automatically generates one child node for each child window in the master window.

void RecalcLayout(const CRect& rcLayout, bool bRefresh)

Triggers the layout recalculation process.

bool WithinSizeLimits(DWORD dwDrawAspect, SIZEL *psizel)

Support for layout management in ActiveX controls and OLE objects.

virtual HWND GetHWND()

Return the window handle of the master window the layout operation is acting on.

virtual CRect GetInitialRect()

Returns the rectangle that should be initially assigned to the layout operation.

virtual CRect GetLayoutRect()

Returns the rectangle that is going to be assigned to the layout tree after a resize operation.

CLayoutFactory& GetNodeFactory()

Returns the factory object utilized for the Node creation/destruction operations.

LayoutInterface CreateLayoutNode()

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

void DestroyLayoutNode(ILayoutNode* pNode)

Destroys the given layout node and all of its descendents.