folloup to color question
Posted on 1998-06-09
I changed the background in my view in the OnPrepareDC function.This is the code I use:
CBrush* pOldBrush = pDC->SelectObject(&Br);
pDC->PatBlt(rcBounds.left, rcBounds.top, rcBounds.Width(), rcBounds.Height(),PATCOPY);
COLORREF crBk = pDC->GetBkColor();
COLORREF crTxt = pDC->GetTextColor();
The problem is when I scroll, I see white flashes come across the screen, as if the view is being redrawn in white, before being drawn as black. Any idea what this may be? Where is it being drawn in white?