Doh, left out some important information.
First, the dialog is modal. Second, it actually does its work in a
separate thread along the lines of:
while ( !done )
{
update_some_stuff();
update_controls_to_reflect_changes();
}
The problem (I think) is that the updated stuff is happening in that
separate thread, in parallel to whatever stuff the regular Windows/MFC
dialog modal loop is doing. It checks for cancellation periodically
(assume that I haven't screwed up the app's synchronization with
itself, but since I'm unsure what the sync rules are for MFC, heaven
help me).
I'm hesitant to use a timer for this, since it's one of those "run as
fast as you can" type things that might under/overrun a timer's
interval.
Brian
|