| 23 | } |
| 24 | |
| 25 | void CDarkStatusBar::OnPaint() { |
| 26 | CPaintDC dc(this); |
| 27 | |
| 28 | CRect rc; |
| 29 | GetClientRect(&rc); |
| 30 | |
| 31 | // Fill dark background |
| 32 | dc.FillSolidRect(rc, m_clrBack); |
| 33 | |
| 34 | // Draw each pane manually |
| 35 | int nParts = GetCount(); |
| 36 | for (int i = 0; i < nParts; i++) { |
| 37 | CRect part; |
| 38 | GetItemRect(i, &part); |
| 39 | |
| 40 | CString text; |
| 41 | GetPaneText(i, text); |
| 42 | |
| 43 | dc.SetTextColor(m_clrText); |
| 44 | dc.SetBkColor(m_clrBack); |
| 45 | dc.DrawText(text, part, DT_LEFT | DT_VCENTER | DT_SINGLELINE); |
| 46 | } |
| 47 | } |
nothing calls this directly
no outgoing calls
no test coverage detected