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

Method SetAttribute

DuiLib/Control/UISlider.cpp:203–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202
203 void CSliderUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
204 {
205 if( _tcscmp(pstrName, _T("thumbimage")) == 0 ) SetThumbImage(pstrValue);
206 else if( _tcscmp(pstrName, _T("thumbhotimage")) == 0 ) SetThumbHotImage(pstrValue);
207 else if( _tcscmp(pstrName, _T("thumbpushedimage")) == 0 ) SetThumbPushedImage(pstrValue);
208 else if( _tcscmp(pstrName, _T("thumbsize")) == 0 ) {
209 SIZE szXY = {0};
210 LPTSTR pstr = NULL;
211 szXY.cx = _tcstol(pstrValue, &pstr, 10); ASSERT(pstr);
212 szXY.cy = _tcstol(pstr + 1, &pstr, 10); ASSERT(pstr);
213 SetThumbSize(szXY);
214 }
215 else if( _tcscmp(pstrName, _T("step")) == 0 ) {
216 SetChangeStep(_ttoi(pstrValue));
217 }
218 else CProgressUI::SetAttribute(pstrName, pstrValue);
219 }
220
221 void CSliderUI::PaintStatusImage(HDC hDC)
222 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected