/////////////////
| 554 | |
| 555 | ////////////////////// |
| 556 | BOOL 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 | } |
| 577 | BOOL CWndResizer::SetParent(UINT uID, LPCTSTR parentName) |
| 578 | { |
| 579 | ASSERT(m_pHookedWnd != NULL); |