CUIFrameLineWnd* CScriptXmlInit::InitFrameLine(LPCSTR path, CUIWindow* parent){ CUIFrameLineWnd* pWnd = xr_new<CUIFrameLineWnd>(); CUIXmlInit::InitFrameLine(m_xml, path, 0, pWnd); pWnd->SetAutoDelete(true); _attach_child(pWnd, parent); //. if(parent) parent->AttachChild(pWnd); return pWnd; }
CUIFrameLineWnd* UIHelper::CreateFrameLine( CUIXml& xml, LPCSTR ui_path, CUIWindow* parent ) { CUIFrameLineWnd* ui = new CUIFrameLineWnd(); parent->AttachChild ( ui ); ui->SetAutoDelete ( true ); CUIXmlInit::InitFrameLine ( xml, ui_path, 0, ui ); return ui; }