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

Method SetParent

app/net_tools/ui/WndResizer.cpp:561–581  ·  view source on GitHub ↗

/////////////////

Source from the content-addressed store, hash-verified

559
560//////////////////////
561BOOL CWndResizer::SetParent(LPCTSTR panelName, LPCTSTR parentName)
562{
563 ASSERT(m_pHookedWnd != NULL);
564
565
566 // now make sure parentName is OK
567 CPanel * pParent = NULL;
568 if ( (pParent = FindPanelByName(&root, parentName)) == NULL) // name of parent must already exist
569 {
570 return FALSE;
571 }
572
573 // make sure panelName exist
574 CPanel * pPanel = NULL;
575 if ((pPanel = FindPanelByName(&root, panelName)) == NULL)
576 {
577 return FALSE;
578 }
579
580 return pParent->AddChild(pPanel);
581}
582BOOL CWndResizer::SetParent(UINT uID, LPCTSTR parentName)
583{
584 ASSERT(m_pHookedWnd != NULL);

Callers

nothing calls this directly

Calls 1

AddChildMethod · 0.45

Tested by

no test coverage detected