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

Method SetParent

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

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

Source from the content-addressed store, hash-verified

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

Callers 1

OnInitDialogMethod · 0.45

Calls 1

AddChildMethod · 0.45

Tested by

no test coverage detected