MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnCtlColor

Method OnCtlColor

Source/DialogReBar.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70HBRUSH CDialogReBar::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
71{
72 HBRUSH hbr = CDialogBar::OnCtlColor(pDC, pWnd, nCtlColor);
73
74 if (nCtlColor == CTLCOLOR_STATIC && theApp.IsThemeActive() && !dynamic_cast<CLockedEdit*>(pWnd)) {
75 pDC->SetBkMode(TRANSPARENT);
76 return (HBRUSH)GetStockObject(NULL_BRUSH);
77 }
78
79 return hbr;
80}

Callers

nothing calls this directly

Calls 1

IsThemeActiveMethod · 0.80

Tested by

no test coverage detected