CDocument::UpdateAllViews MFC
-
When sending GetDocument()->UpdateAllViews alle views are flickering once. Can anybody tell me how to disable that flickering? Do I have to modify OnUpdate? I tried to do something with InvalidateRect but it does not solve my problem. Best regards, Peter :confused:
-
When sending GetDocument()->UpdateAllViews alle views are flickering once. Can anybody tell me how to disable that flickering? Do I have to modify OnUpdate? I tried to do something with InvalidateRect but it does not solve my problem. Best regards, Peter :confused:
-
HI, A view flickers because of the stuff it draws. So, try to optimize what they drawing. -- ====== Arman
-
But it also appears with a window consisting of common controls like listboxes, buttons and so on... What call is responsible for this update (and flickering)?
Try adding these styles to the view
WS_CLIPSIBLINGS, WS_CLIPCHILDREN
Nibu thomas Software Developer
-
But it also appears with a window consisting of common controls like listboxes, buttons and so on... What call is responsible for this update (and flickering)?
It seems you have put also window controls onto view. Again, I prone to say that in that case the controls are also redrawn (not updated). This may take some time too. You should provide more info on what you are doing to let us to be more concrete. Anyway, you should update not entire view but a part of it. You'd rather set a mask parameter into UpdateAllViews and get it from CView::OnUpdate method, then update the necessary part of a view. -- ====== Arman