text color of a check box
Posted on 2012-04-02
I have overwritten the OnCtlColor function where we are changing the text color of a check box. But it is not working. Please help on that.
HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
if(nCtlColor == CTLCOLOR_BTN)
return m_brush;//white brush
We are using MFC.
Note: It works on windows classic theme but doesn't work in window7.