View update problem ??? Help !!!

If I use the myAISContext(AIS_InteractiveContext) to display some shape(AIS_Shape), the view can be immediately upated and display the shape.

However, when I put a drawing function in the CXXXView::OnDraw(), and call CXXXView::Invalidate(TRUE) somewhere to update view and draw my shape, I find the view can NOT be updated immediately. After I minimize or resize the window, then the shape can be displayed.

So, why the Invalidate() can NOT update the view, whereas the explicit actions, such as drag the window, resize the window,..., can update the view.

How to handle this problem, anybody knows ???

Paul Jimenez's picture

What about using the Redraw() method of V3d_View and the Update() method of V3d_Viewer depending on the case?

Jun WANG's picture

Thanks for your reply. But they are doesnot work.

Paul Jimenez's picture

You will have to explain your problem better then. Just in case: have you also tried the Redisplay() method of AIS_InteractiveContext?

Jun WANG's picture

Thanks for your continuous reply. The problem has been handled. It is my fault that I forget set some parameters.