Exemplo n.º 1
0
	void CAnimControlUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
	{
		if( _tcscmp(pstrName, _T("images")) == 0 ) SetImages(pstrValue);
		else if( _tcscmp(pstrName, _T("framecnt")) == 0 ) SetTotalFrameCnt(_ttoi(pstrValue));
		else if( _tcscmp(pstrName, _T("elapse")) == 0 ) SetElapse(_ttoi(pstrValue));
		else if( _tcscmp(pstrName, _T("auto")) == 0 ) 
		{
			if(_tcscmp(pstrValue,_T("true")) == 0) Start();
		}
		else CLabelUI::SetAttribute(pstrName,pstrValue);
	}
Exemplo n.º 2
0
	void CSeqButtonUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
	{
		if( _tcscmp(pstrName, _T("seqimages")) == 0 ) SetSeqImages(pstrValue);
		else if( _tcscmp(pstrName, _T("framecnt")) == 0 ) SetTotalFrameCnt(_ttoi(pstrValue));
		else CButtonUI::SetAttribute(pstrName,pstrValue);
	}