Click to See Complete Forum and Search --> : How do i change the background color of a window


April 10th, 1999, 06:04 AM
Hi,
I am unable to change the background color of my window.
How do i change it?
Please help me to do this.

ZhaoXing
April 10th, 1999, 09:53 AM
void CTry::OnPaint()
{
CPaintDC dc(this);

CRect rect;
GetClientRect(rect);
CBrush m_Brush(RGB(155,200,155));
dc.FillRect(rect,&m_Brush);

}


}

XingXing