| 203 | } |
| 204 | |
| 205 | void COptionUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue) |
| 206 | { |
| 207 | if( _tcscmp(pstrName, _T("group")) == 0 ) SetGroup(pstrValue); |
| 208 | else if( _tcscmp(pstrName, _T("selected")) == 0 ) Selected(_tcscmp(pstrValue, _T("true")) == 0); |
| 209 | else if( _tcscmp(pstrName, _T("selectedimage")) == 0 ) SetSelectedImage(pstrValue); |
| 210 | else if( _tcscmp(pstrName, _T("selectedhotimage")) == 0 ) SetSelectedHotImage(pstrValue); |
| 211 | else if( _tcscmp(pstrName, _T("foreimage")) == 0 ) SetForeImage(pstrValue); |
| 212 | else if( _tcscmp(pstrName, _T("selectedbkcolor")) == 0 ) { |
| 213 | if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue); |
| 214 | LPTSTR pstr = NULL; |
| 215 | DWORD clrColor = _tcstoul(pstrValue, &pstr, 16); |
| 216 | SetSelectedBkColor(clrColor); |
| 217 | } |
| 218 | else if( _tcscmp(pstrName, _T("selectedtextcolor")) == 0 ) { |
| 219 | if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue); |
| 220 | LPTSTR pstr = NULL; |
| 221 | DWORD clrColor = _tcstoul(pstrValue, &pstr, 16); |
| 222 | SetSelectedTextColor(clrColor); |
| 223 | } |
| 224 | else CButtonUI::SetAttribute(pstrName, pstrValue); |
| 225 | } |
| 226 | |
| 227 | void COptionUI::PaintStatusImage(HDC hDC) |
| 228 | { |
nothing calls this directly
no outgoing calls
no test coverage detected