MCPcopy Create free account
hub / github.com/acl-dev/acl / AddChild

Method AddChild

app/net_tools/ui/WndResizer.cpp:1837–1856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1835 }
1836}
1837BOOL CPanel::AddChild(CPanel * pChild)
1838{
1839 if (pChild->Parent != NULL)
1840 {
1841 BOOL bOk = pChild->Parent->RemoveChild(pChild);
1842 if (bOk == FALSE)
1843 {
1844 return FALSE;
1845 }
1846 }
1847 pChild->LeftOffset = pChild->left - this->left;
1848 pChild->TopOffset = pChild->top - this->top;
1849 pChild->RightOffset = this->right - pChild->right;
1850 pChild->BottomOffset = this->bottom - pChild->bottom;
1851
1852 pChild->Parent = this;
1853
1854 Children.AddTail( pChild );
1855 return TRUE;
1856}
1857
1858BOOL CPanel::RemoveChild(CPanel * pChild)
1859{

Callers 6

HookMethod · 0.45
SetParentMethod · 0.45
CreateSplitContainerMethod · 0.45
CreateFlowLayoutPanelMethod · 0.45
CreatePanelMethod · 0.45
GetUIPanelMethod · 0.45

Calls 1

RemoveChildMethod · 0.45

Tested by

no test coverage detected