| 219 | } |
| 220 | |
| 221 | void CSliderUI::PaintStatusImage(HDC hDC) |
| 222 | { |
| 223 | CProgressUI::PaintStatusImage(hDC); |
| 224 | |
| 225 | RECT rcThumb = GetThumbRect(); |
| 226 | rcThumb.left -= m_rcItem.left; |
| 227 | rcThumb.top -= m_rcItem.top; |
| 228 | rcThumb.right -= m_rcItem.left; |
| 229 | rcThumb.bottom -= m_rcItem.top; |
| 230 | if( (m_uButtonState & UISTATE_CAPTURED) != 0 ) { |
| 231 | if( !m_sThumbPushedImage.IsEmpty() ) { |
| 232 | m_sImageModify.Empty(); |
| 233 | m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), rcThumb.left, rcThumb.top, rcThumb.right, rcThumb.bottom); |
| 234 | if( !DrawImage(hDC, (LPCTSTR)m_sThumbPushedImage, (LPCTSTR)m_sImageModify) ) m_sThumbPushedImage.Empty(); |
| 235 | else return; |
| 236 | } |
| 237 | } |
| 238 | else if( (m_uButtonState & UISTATE_HOT) != 0 ) { |
| 239 | if( !m_sThumbHotImage.IsEmpty() ) { |
| 240 | m_sImageModify.Empty(); |
| 241 | m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), rcThumb.left, rcThumb.top, rcThumb.right, rcThumb.bottom); |
| 242 | if( !DrawImage(hDC, (LPCTSTR)m_sThumbHotImage, (LPCTSTR)m_sImageModify) ) m_sThumbHotImage.Empty(); |
| 243 | else return; |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | if( !m_sThumbImage.IsEmpty() ) { |
| 248 | m_sImageModify.Empty(); |
| 249 | m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), rcThumb.left, rcThumb.top, rcThumb.right, rcThumb.bottom); |
| 250 | if( !DrawImage(hDC, (LPCTSTR)m_sThumbImage, (LPCTSTR)m_sImageModify) ) m_sThumbImage.Empty(); |
| 251 | else return; |
| 252 | } |
| 253 | } |
| 254 | } |
nothing calls this directly
no test coverage detected