Update in CListBox Instantaneously ???
Posted on 1998-04-25
I have used MSCOMM Ole in VC++5 (WinNT) to create a Serial Data Capturing program. I am extracting a complete line of text from the received block & AddString() the string onto the ListBox in my modeless dialog for each COM port setup. Although my code is supposed to add one line at a time onto the ListBox, but all the time, it's not showed this way. It seems like the CPU will process all the receiver block buffer before dealing with the display portion, thereby after some delay, pouring out all the lines of processed string in one shot. This is not ideal if many ports have been setup for logging & there are lots of data coming in.
How then can I make sure the display is instantaneous, showing one line of string when the code is supposed to? Is there a flush statement I can use?
Thanks for any guide given :)