Hello, i'm using Visual C++ 6.0 with MFC. I'm making a dialog based application and i'm using OnTimer() function. But when i start my program my application screen is blinking because of the Timer. It is a little annoying and i need your help to make it not to blink. I think it's like the window is repainting and i hope you can help me. Thanks in advance.

Your timer event handler is probably doing something that makes the screen to be repainted. If the event handler takes a long time to process then turn kill the timer at the beginnning of the event handler and restart it just before it returns to prevent MFC from calling it again before it is finished.