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...
-
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...
Make the background a view too. That helps allot, since windows keeps your backround image clean. If you realy need to redraw it you only need to call backview.invalidate();. You have to create a OnSize() Function that redraws the whole background in the view.
-
Make the background a view too. That helps allot, since windows keeps your backround image clean. If you realy need to redraw it you only need to call backview.invalidate();. You have to create a OnSize() Function that redraws the whole background in the view.