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); }
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); }