Splash screen stays more than programmed timer value
-
Hi, I have developed a multithread application, which will communicate with an embedded system. At startup the application should display splash screen for 5 seconds and display the application window. The problem is the display period of splash screen is more than one minute. When I monitored the messages using SPY tool I could see, other messages kept posting to the application window, whereas splash timer message got posted last. Can anyone tell me why it is happening and how to get rid of the problem? NSS
-
Hi, I have developed a multithread application, which will communicate with an embedded system. At startup the application should display splash screen for 5 seconds and display the application window. The problem is the display period of splash screen is more than one minute. When I monitored the messages using SPY tool I could see, other messages kept posting to the application window, whereas splash timer message got posted last. Can anyone tell me why it is happening and how to get rid of the problem? NSS
sthalasayanam wrote:
Can anyone tell me why it is happening and how to get rid of the problem?
From MSDN:
TheWM_TIMER
message is a low-priority message. TheGetMessage
andPeekMessage
functions post this message only when no other higher-priority messages are in the thread's message queue.
Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http:\\nibuthomas.wordpress.com