Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!pilchuck!nwnexus!sumax!polari!bruceki From: bruceki@polari.UUCP (Bruce King) Newsgroups: comp.windows.ms.programmer Subject: Re: Cooperative Multitasking? Keywords: multitasking Message-ID: <3080@polari.UUCP> Date: 4 Jan 91 08:03:11 GMT References: Distribution: comp Organization: Seattle Online Public Unix (206) 328-4944 Lines: 8 Imbed a call to PeekMessage in your processing loop. Windows will reschedule, allowing other apps to run, or if no other app wishes to run, return control to your program immediately. Alternatively you can issue a call to Yield() or GetMessage. PeekMessage is the call of my choice though; it reschedules without forcing you to remove the message from the queue and deal with it. Bruce King / bruceki@microsoft (work) / bruceki@polari (home)