Re: Updates in a modal dialog loop
Brian Hook <[email protected]> Wed, 9 Feb 2005 23:47:58 -0500
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <200529234758.511612@GATEWAY> |
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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_idU5