MCPcopy Create free account
hub / github.com/cinience/RedisStudio / SetAttribute

Method SetAttribute

DuiLib/Control/UIProgress.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected