Beispiel #1
0
    void ChildLayout::SetAttribute(const std::string &strName, const std::string& strValue)
    {
        if(strName==("xmlfile"))
#if defined _UNICODE | defined UNICODE
            SetChildLayoutXML(Ansi2Wchar(strValue.c_str()));
#else
            SetChildLayoutXML(strValue);
#endif
        else
	void CChildLayoutUI::SetAttribute( LPCTSTR pstrName, LPCTSTR pstrValue )
	{
		if( _tcscmp(pstrName, _T("xmlfile")) == 0 )
			SetChildLayoutXML(pstrValue);
		else
			CContainerUI::SetAttribute(pstrName,pstrValue);
	}
void ChildBox::SetAttribute( const::std::wstring& strName, const std::wstring& strValue )
{
	if( strName == _T("xmlfile") )
		SetChildLayoutXML(strValue);
	else
		Box::SetAttribute(strName,strValue);
}