| 253 | } |
| 254 | |
| 255 | void COptionUI::PaintText(HDC hDC) |
| 256 | { |
| 257 | if( (m_uButtonState & UISTATE_SELECTED) != 0 ) |
| 258 | { |
| 259 | DWORD oldTextColor = m_dwTextColor; |
| 260 | if( m_dwSelectedTextColor != 0 ) m_dwTextColor = m_dwSelectedTextColor; |
| 261 | |
| 262 | if( m_dwTextColor == 0 ) m_dwTextColor = m_pManager->GetDefaultFontColor(); |
| 263 | if( m_dwDisabledTextColor == 0 ) m_dwDisabledTextColor = m_pManager->GetDefaultDisabledColor(); |
| 264 | |
| 265 | if( m_sText.IsEmpty() ) return; |
| 266 | int nLinks = 0; |
| 267 | RECT rc = m_rcItem; |
| 268 | rc.left += m_rcTextPadding.left; |
| 269 | rc.right -= m_rcTextPadding.right; |
| 270 | rc.top += m_rcTextPadding.top; |
| 271 | rc.bottom -= m_rcTextPadding.bottom; |
| 272 | |
| 273 | if( m_bShowHtml ) |
| 274 | CRenderEngine::DrawHtmlText(hDC, m_pManager, rc, m_sText, IsEnabled()?m_dwTextColor:m_dwDisabledTextColor, \ |
| 275 | NULL, NULL, nLinks, m_uTextStyle); |
| 276 | else |
| 277 | CRenderEngine::DrawText(hDC, m_pManager, rc, m_sText, IsEnabled()?m_dwTextColor:m_dwDisabledTextColor, \ |
| 278 | m_iFont, m_uTextStyle); |
| 279 | |
| 280 | m_dwTextColor = oldTextColor; |
| 281 | } |
| 282 | else |
| 283 | CButtonUI::PaintText(hDC); |
| 284 | } |
| 285 | } |
nothing calls this directly
no test coverage detected