wang
2011-01-20 21:09:24 UTC
Hi all gurus,
I've written a dialogue program in Visual C++ which processes many
files and might last long. I want to show the status of the process,
for example, "just processing the file abc.txt", on the GUI, where I
have put a static control with the variable m_strMsg for showing such
messages. During the processing the program changes m_strMsg if a new
file being processed is opened, and I haven't forgotten to write
"UpdateData(FALSE);" after changing m_strMsg. But the message on the
GUI does not change until the end of the program. What must be done to
synchronize the GUI message and the process status? Or should I use
other architecture (for example, SDI) instead of dialogue program?
Many thanks in advance!
k.w.wang
I've written a dialogue program in Visual C++ which processes many
files and might last long. I want to show the status of the process,
for example, "just processing the file abc.txt", on the GUI, where I
have put a static control with the variable m_strMsg for showing such
messages. During the processing the program changes m_strMsg if a new
file being processed is opened, and I haven't forgotten to write
"UpdateData(FALSE);" after changing m_strMsg. But the message on the
GUI does not change until the end of the program. What must be done to
synchronize the GUI message and the process status? Or should I use
other architecture (for example, SDI) instead of dialogue program?
Many thanks in advance!
k.w.wang