COM Port and WM_TIMER
Posted on 1998-04-28
I have an application that needs to Test the functioning of a test equipment thru a COM port.My requirement is that when the test begins(that is when the port is opened up), I need to display a Dialog that has a Progress bar control to indicate that my test is in progress.
What I have done is, when the test begins, I create a New Modeless Dialog and within the dialog.cpp I have implemented the OnTimer function. The function sets the position of the Progress Bar with a rand() function.
The problem is, when I open up the port, Windows doesnt seem to send WM_TIMER messages at all and my progress bar stands still till the port is closed.
Theoretically, windows should resume multitasking after it opens up the port.
Any help would be much appreciated.