The way I found was to edit the "OnCtlColor" of my view in the following way:
HBRUSH CMyClassView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
// this is what was there before:
//HBRUSH hbr = CFormView::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
//And now my code:
CBrush brush;
brush.CreateSolidBrush(RGB(0, 128, 0));
// TODO: Return a different brush if the default is not desired
return brush;
// return NULL;
}
That way my background was a somewhat dark green. However, I *think* it worked only in win 9x, not win NT (it has been a while since I tested my program on windows NT). Can anyone confirm that? And maybe provide a way around that problem?
Vincent