Form view timer problem.
-
Hi, I have a view class derived from CFormView. I have a timer in it which is fired for every 20 seconds. In the timer, I am repainting the form view with some bitmaps in OnPaint handler. When I am in the timer, the form view UI is stuck, i.e I am not able to click any other bottons on the form view. Can any one please give me some suggestions so that my UI responds to events even when the timer code is trying to refresh the view. Thanks Madhavi
-
Hi, I have a view class derived from CFormView. I have a timer in it which is fired for every 20 seconds. In the timer, I am repainting the form view with some bitmaps in OnPaint handler. When I am in the timer, the form view UI is stuck, i.e I am not able to click any other bottons on the form view. Can any one please give me some suggestions so that my UI responds to events even when the timer code is trying to refresh the view. Thanks Madhavi
-
Put the timer and the code that belongs to it in a separate thread. That should do the trick.