May 14th, 1999, 12:35 PM
I tried this but nothing happens:
HBRUSH CACUSHusPP::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CPropertyPage::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if ( nCtlColor == CTLCOLOR_LISTBOX )
hbr = (HBRUSH)(LTGRAY_BRUSH);
// TODO: Return a different brush if the default is not desired
return hbr;
}
How is it done?
D.B.
HBRUSH CACUSHusPP::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CPropertyPage::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if ( nCtlColor == CTLCOLOR_LISTBOX )
hbr = (HBRUSH)(LTGRAY_BRUSH);
// TODO: Return a different brush if the default is not desired
return hbr;
}
How is it done?
D.B.