Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Yield? Message-ID: <106580014@hpcvlx.HP.COM> Date: 11 Jan 89 18:48:34 GMT References: <33575@grapevine.uucp> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 12 > One alternative is to break your painting into a number of smaller tasks > and do them in response to WM_TIMER messages, with the timer set up by > WM_PAINT. In this way, other messages can be processed between the > timer messages. The only problem with this is that your application will still control the CPU, starving all other tasks. Task switching isn't done unless the messgae queue is empty. Let's hear it for a non-preemptive multitasking system! :-) --Bill Turner