Best way To Do?
Hi all,
I have 3 dockable views in my application.
In my Overrided "OnEraseBkgnd" message handler,Depending on some useractions
sometimes,I have to redraw the background,some times not.
BOOL C_View::OnEraseBkgnd(CDC* pDC)
{
if//something;;can be many useractions reqiring no redraw
return FALSE;
else// ;can be many useractions reqiring a redraw
return CScrollView::OnEraseBkgnd(pDC);
}
what would be the best way,I could do that...
Thanks...
|