| 84 | } |
| 85 | |
| 86 | void CProgressUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue) |
| 87 | { |
| 88 | if( _tcscmp(pstrName, _T("foreimage")) == 0 ) SetForeImage(pstrValue); |
| 89 | else if( _tcscmp(pstrName, _T("hor")) == 0 ) SetHorizontal(_tcscmp(pstrValue, _T("true")) == 0); |
| 90 | else if( _tcscmp(pstrName, _T("min")) == 0 ) SetMinValue(_ttoi(pstrValue)); |
| 91 | else if( _tcscmp(pstrName, _T("max")) == 0 ) SetMaxValue(_ttoi(pstrValue)); |
| 92 | else if( _tcscmp(pstrName, _T("value")) == 0 ) SetValue(_ttoi(pstrValue)); |
| 93 | else if( _tcscmp(pstrName, _T("isstretchfore"))==0) SetStretchForeImage(_tcscmp(pstrValue, _T("true")) == 0? true : false); |
| 94 | else CLabelUI::SetAttribute(pstrName, pstrValue); |
| 95 | } |
| 96 | |
| 97 | void CProgressUI::PaintStatusImage(HDC hDC) |
| 98 | { |
nothing calls this directly
no outgoing calls
no test coverage detected