MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / OnPaint

Method OnPaint

ColorCop/DarkStatusBar.cpp:25–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected