第三方框架改为仓内子集并完善构建忽略规则
完整 NIM_Duilib_Framework 仓库移至父目录,third_party 仅保留实际使用的 base、duilib、bin/resources 与许可证;.gitignore 覆盖 MSBuild 与打包产物。
This commit is contained in:
1 parent
249e8548de
commit
e1e26acc49
391 files changed
+342850
No files matched your search
@@ -0,0 +1,45 @@
|
||||
#include "stdafx.h"
|
||||
#include "ChildBox.h"
|
||||
|
||||
namespace ui
|
||||
{
|
||||
|
||||
ChildBox::ChildBox()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void ChildBox::Init()
|
||||
{
|
||||
if (!m_strXMLFile.empty())
|
||||
{
|
||||
Box* pChildWindow = static_cast<Box*>(GlobalManager::CreateBoxWithCache(m_strXMLFile.c_str(), CreateControlCallback()));
|
||||
if (pChildWindow) {
|
||||
this->Add(pChildWindow);
|
||||
}
|
||||
else {
|
||||
ASSERT(FALSE);
|
||||
this->RemoveAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ChildBox::SetAttribute( const::std::wstring& strName, const std::wstring& strValue )
|
||||
{
|
||||
if( strName == _T("xmlfile") )
|
||||
SetChildLayoutXML(strValue);
|
||||
else
|
||||
Box::SetAttribute(strName,strValue);
|
||||
}
|
||||
|
||||
void ChildBox::SetChildLayoutXML( std::wstring strXML )
|
||||
{
|
||||
m_strXMLFile = strXML;
|
||||
}
|
||||
|
||||
std::wstring ChildBox::GetChildLayoutXML()
|
||||
{
|
||||
return m_strXMLFile;
|
||||
}
|
||||
|
||||
} // namespace ui
|
||||
Reference in new issue
Block a user