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

Method PaintText

DuiLib/Control/UICombo.cpp:941–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939}
940
941void 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

Callers

nothing calls this directly

Calls 4

GetInterfaceMethod · 0.45
DrawItemTextMethod · 0.45
SetPosMethod · 0.45
DoPaintMethod · 0.45

Tested by

no test coverage detected