No sweat. Handle WM_CTLCOLOR in your CPropertySheet derived class and return the appropriate brush handle: Example:
HBRUSH CMyPropertySheet::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CPropertySheet::OnCtlColor(pDC, pWnd, nCtlColor);
if(CTLCOLOR_DLG == nCtlColor)
{
CBrush brush(RGB(0,0,255));
hbr = brush;
brush.Detach();
}
return hbr;
}
Ovidiu Microsoft MVP