| 105 | // CLabel message handlers |
| 106 | |
| 107 | HBRUSH CLabel::CtlColor(CDC* pDC, UINT nCtlColor) { |
| 108 | // TODO(j4y): Change any attributes of the DC here |
| 109 | // TODO(j4y): Return a non-NULL brush if the parent's handler should not be called |
| 110 | |
| 111 | if (CTLCOLOR_STATIC == nCtlColor) { |
| 112 | pDC->SelectObject(&m_font); |
| 113 | pDC->SetTextColor(m_crText); |
| 114 | pDC->SetBkMode(TRANSPARENT); |
| 115 | } |
| 116 | |
| 117 | return m_hBrush; |
| 118 | } |
| 119 | |
| 120 | void CLabel::ReconstructFont() { |
| 121 | m_font.DeleteObject(); |
nothing calls this directly
no outgoing calls
no test coverage detected