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

Method AddChild

lib_acl_cpp/samples/gui_rpc/ui/WndResizer.cpp:1832–1851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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