Why I shoun't call CView::OnPaint() for painting messages
-
Hi Why at the end of the OnPaint() there is a comment saying: // Do not call CView::OnPaint() for painting messages ? what should i do for refreshing the window, i try to call the function Invalidate() but when I call it the screen blinks. Please advice. Regards Assay.
-
Hi Why at the end of the OnPaint() there is a comment saying: // Do not call CView::OnPaint() for painting messages ? what should i do for refreshing the window, i try to call the function Invalidate() but when I call it the screen blinks. Please advice. Regards Assay.
-
In order to avoid blinkings try to invalidate only the area you are updating instead of the whole paint area. Themis
-
It's easy if you know what you have updated in each call. Instead of calling Invalidate() call InvalidateRect(). It takes as argument the area that you want to invalidate. It will update only that area this way if only a small portion of your view has changed you won't redraw everything. Themis
-
It's easy if you know what you have updated in each call. Instead of calling Invalidate() call InvalidateRect(). It takes as argument the area that you want to invalidate. It will update only that area this way if only a small portion of your view has changed you won't redraw everything. Themis