| 466 | } |
| 467 | |
| 468 | void CEditUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue) |
| 469 | { |
| 470 | if( _tcscmp(pstrName, _T("readonly")) == 0 ) SetReadOnly(_tcscmp(pstrValue, _T("true")) == 0); |
| 471 | else if( _tcscmp(pstrName, _T("numberonly")) == 0 ) SetNumberOnly(_tcscmp(pstrValue, _T("true")) == 0); |
| 472 | else if( _tcscmp(pstrName, _T("password")) == 0 ) SetPasswordMode(_tcscmp(pstrValue, _T("true")) == 0); |
| 473 | else if( _tcscmp(pstrName, _T("maxchar")) == 0 ) SetMaxChar(_ttoi(pstrValue)); |
| 474 | else if( _tcscmp(pstrName, _T("normalimage")) == 0 ) SetNormalImage(pstrValue); |
| 475 | else if( _tcscmp(pstrName, _T("hotimage")) == 0 ) SetHotImage(pstrValue); |
| 476 | else if( _tcscmp(pstrName, _T("focusedimage")) == 0 ) SetFocusedImage(pstrValue); |
| 477 | else if( _tcscmp(pstrName, _T("disabledimage")) == 0 ) SetDisabledImage(pstrValue); |
| 478 | else if( _tcscmp(pstrName, _T("nativebkcolor")) == 0 ) { |
| 479 | if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue); |
| 480 | LPTSTR pstr = NULL; |
| 481 | DWORD clrColor = _tcstoul(pstrValue, &pstr, 16); |
| 482 | SetNativeEditBkColor(clrColor); |
| 483 | } |
| 484 | else CLabelUI::SetAttribute(pstrName, pstrValue); |
| 485 | } |
| 486 | |
| 487 | void CEditUI::PaintStatusImage(HDC hDC) |
| 488 | { |
nothing calls this directly
no outgoing calls
no test coverage detected