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

Method CtlColor

ColorCop/Label.cpp:107–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105// CLabel message handlers
106
107HBRUSH 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
120void CLabel::ReconstructFont() {
121 m_font.DeleteObject();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected