Hi, You have to exclude the headers from the clipbox, Try something like this... CPaintDC dc(this); CRect headerRect; CRect clientRect; GetClientRect(&clientRect); GetDlgItem(0)->GetWindowRect(&headerRect); ScreenToClient(&headerRect); dc.ExcludeClipRect(&headerRect); CMemDC memDC(&dc); //memDC.FillSolidRect(&clientRect, RGB(255, 255, 255)); DefWindowProc(WM_PAINT, (WPARAM)memDC->m_hDC, (LPARAM)0); Arjan