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

Method CreateSplitContainer

app/net_tools/ui/WndResizer.cpp:968–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

966
967
968BOOL CWndResizer::CreateSplitContainer(LPCTSTR panelName, LPCTSTR panelNameA, LPCTSTR panelNameB)
969{
970 CPanel * pPanel = NULL;
971 if ((pPanel = FindPanelByName(&root, panelName)) != NULL)
972 {
973 return FALSE;
974 }
975
976 CPanel * pPanelA = NULL;
977 if ((pPanelA = FindPanelByName(&root, panelNameA)) == NULL)
978 {
979 return FALSE;
980 }
981
982
983 CPanel * pPanelB = NULL;
984 if ((pPanelB = FindPanelByName(&root, panelNameB)) == NULL)
985 {
986 return FALSE;
987 }
988
989
990 if (pPanelA == pPanelB) // two panel cannot be same
991 {
992 return FALSE;
993 }
994
995
996 CPanel * pSplitterContainer = CSplitContainer::Create(pPanelA, pPanelB);
997 if (pSplitterContainer == NULL)
998 {
999 return FALSE;
1000 }
1001 pSplitterContainer->Name = panelName;
1002
1003 return root.AddChild(pSplitterContainer);
1004}
1005
1006
1007

Callers

nothing calls this directly

Calls 1

AddChildMethod · 0.45

Tested by

no test coverage detected