Link to home
Start Free TrialLog in
Avatar of killerdoll
killerdoll

asked on

Why does the View react one step slower after the Doc is modified?

To summarize, i've modified the CView class to hold the OpenGL viewing codes, the CAD model data to be viewed is stored in a member of the Document class. The application works fine when I open the CAD files, the model is shown on the screen, it can be rotated, translated, zoom in, zoom out etc. (The update works fine as long as the modifications are made only in the View class parameters.) But when i tried changing the model data by an icon click, the View is updated one step behind. (i.e. i clicked some operations in the sequence A-B-C-D-E, the program react one step slower, becoming NOTHING_HAPPEN-A-B-C-D. i tracked by debugger that the data in Document are modified correctly. So why does it react slower? How to solve this?

(I'm just newly registered, so don't have many points....)
ASKER CERTIFIED SOLUTION
Avatar of northernchill
northernchill

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of killerdoll
killerdoll

ASKER

Oh, you're right...!!!
(By adding some codes to send WM_PAINT across the queue, it works...!!!)

Many Thks... :)