| 691 | } |
| 692 | |
| 693 | CUIWindow* CUIWindow::FindChild(const shared_str name, u32 max_nested) |
| 694 | { |
| 695 | if (WindowName() == name) |
| 696 | return this; |
| 697 | |
| 698 | if (0 == max_nested) |
| 699 | return NULL; |
| 700 | |
| 701 | //. m_dbg_flag.set(256,TRUE); |
| 702 | WINDOW_LIST::const_iterator it = m_ChildWndList.begin(); |
| 703 | WINDOW_LIST::const_iterator it_e = m_ChildWndList.end(); |
| 704 | for (; it != it_e; ++it) |
| 705 | { |
| 706 | CUIWindow* pRes = (*it)->FindChild(name, max_nested - 1); |
| 707 | if (pRes != NULL) |
| 708 | return pRes; |
| 709 | } |
| 710 | |
| 711 | //. m_dbg_flag.set(256,FALSE); |
| 712 | return NULL; |
| 713 | } |
| 714 | |
| 715 | const shared_str CUIWindow::WindowName() const |
| 716 | { |
no test coverage detected