D
Dave Cullen
I have a dialog based MFC application (VS2005) that controls an automation
process. There is a worker thread in the background handling some machine
interfaces. The main thread provides status displays via static text boxes
and UpdateData(FALSE). The worker thread does not write to the window.
Sometimes the window will not update the display. The process keeps running,
so I know both threads are working. Strangely, if I pop up a standard
MessageBox for operator yes/no input the window will update it's display
after the messagebox closes and continue to update normally from that point
on.
I've interspersed calls to RedrawWindow() at various points within the main
loop with no apparent improvement. Is there anything else I can do to insure
the window updates the display? And why would popping up a messagebox make
everything start working?
Thanks
drc
process. There is a worker thread in the background handling some machine
interfaces. The main thread provides status displays via static text boxes
and UpdateData(FALSE). The worker thread does not write to the window.
Sometimes the window will not update the display. The process keeps running,
so I know both threads are working. Strangely, if I pop up a standard
MessageBox for operator yes/no input the window will update it's display
after the messagebox closes and continue to update normally from that point
on.
I've interspersed calls to RedrawWindow() at various points within the main
loop with no apparent improvement. Is there anything else I can do to insure
the window updates the display? And why would popping up a messagebox make
everything start working?
Thanks
drc