| 11 | END_MESSAGE_MAP() |
| 12 | |
| 13 | void CDarkStatusBar::SetTheme(bool dark) { |
| 14 | if (dark) { |
| 15 | m_clrBack = RGB(32, 32, 32); |
| 16 | m_clrText = RGB(220, 220, 220); |
| 17 | } else { |
| 18 | m_clrBack = RGB(240, 240, 240); // standard dialog background |
| 19 | m_clrText = RGB(0, 0, 0); // standard text |
| 20 | } |
| 21 | |
| 22 | Invalidate(); |
| 23 | } |
| 24 | |
| 25 | void CDarkStatusBar::OnPaint() { |
| 26 | CPaintDC dc(this); |