   MFC Question/ How to update values in cedit every second
  Well i am just wondering which function are called every frame or every second so that i can update values i read from a external device in an Dialog.Should u use settimeout(...) for that? Or haw would i do that?  
  Look up CWnd functions SetTimer, KillTimer, OnTimer.    Think Liberally.;  I should also add--you''d want to use those methods in the window that owns the CEdit, be it a CView or CDialog.    Think Liberally.;  Thanks stoffel, i found a gl mfc demo called "Cube" in the msdn library samples under "mfc advanced" which does what i want and demonstrates those timer functions.  ;  CWinApp::OnIdle is also available. CWinApp is the base class of your application class if you used the VC++ MFC AppWizard to create your project.  ;  OnIdle is something you almost never, ever want to override unless you have an extremely compelling reason.  It''s call very infrequently.    Think Liberally.