
How to change background and text color of CPropertySheet
In normal dialogs I use something like that :
HBRUSH CNormalDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
pDC->SetBkColor(BKCOLOR);
pDC->SetTextColor(TEXCOLOR);
return m_BkBrush;
Quote:
}
unfortunately in CPropertySheet, a text color and a background color of an
embedded CTabCtrl control remains unchanged. I can obtain a pointer to this
control through GetTabControl() but I don't know what to do with it. I tried
some subclassing with my own CTabCtrl but colors still remained the same.
Any ideas ? Thanks,
Kamil