?
Solved

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

Posted on 2003-03-20
2
Medium Priority
?
172 Views
Last Modified: 2013-11-20
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....)
0
Comment
Question by:killerdoll
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
northernchill earned 120 total points
ID: 8176483
Perhaps if you posted some code related to your question.  It could be that although you are updating the data, the OpenGL window may not be redrawing itself when you think it should.  This could be caused by not forcing the window to explicitly rebuild the rendered information.
0
 

Author Comment

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

Many Thks... :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question