Exemplo n.º 1
0
void CUIVerticalLayout::SetAttribute(LPCWSTR pstrName, LPCWSTR pstrValue)
{
	if( wcscmp(pstrName, L"sepheight") == 0 )
		SetSepHeight(/*_wtoi(pstrValue)*/wcstol(pstrValue, NULL, 10));
	else if( wcscmp(pstrName, L"sepimm") == 0 )
		SetSepImmMode(wcscmp(pstrValue, L"true") == 0);
	else 
		CUIContainer::SetAttribute(pstrName, pstrValue);
}
Exemplo n.º 2
0
	void CVerticalLayoutUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
	{
		if( _tcscmp(pstrName, _T("sepheight")) == 0 ) SetSepHeight(_ttoi(pstrValue));
		else if( _tcscmp(pstrName, _T("sepimm")) == 0 ) SetSepImmMode(_tcscmp(pstrValue, _T("true")) == 0);
		else CContainerUI::SetAttribute(pstrName, pstrValue);
	}