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 ???