| 939 | } |
| 940 | |
| 941 | void CComboUI::PaintText(HDC hDC) |
| 942 | { |
| 943 | RECT rcText = m_rcItem; |
| 944 | rcText.left += m_rcTextPadding.left; |
| 945 | rcText.right -= m_rcTextPadding.right; |
| 946 | rcText.top += m_rcTextPadding.top; |
| 947 | rcText.bottom -= m_rcTextPadding.bottom; |
| 948 | |
| 949 | if( m_iCurSel >= 0 ) { |
| 950 | CControlUI* pControl = static_cast<CControlUI*>(m_items[m_iCurSel]); |
| 951 | IListItemUI* pElement = static_cast<IListItemUI*>(pControl->GetInterface(_T("ListItem"))); |
| 952 | if( pElement != NULL ) { |
| 953 | pElement->DrawItemText(hDC, rcText); |
| 954 | } |
| 955 | else { |
| 956 | RECT rcOldPos = pControl->GetPos(); |
| 957 | pControl->SetPos(rcText); |
| 958 | pControl->DoPaint(hDC, rcText); |
| 959 | pControl->SetPos(rcOldPos); |
| 960 | } |
| 961 | } |
| 962 | } |
| 963 | |
| 964 | } // namespace DuiLib |
nothing calls this directly
no test coverage detected