Article View: comp.os.ms-windows.programmer.graphics
Article #36Re: Background Animation
From: Joel Shellman
Date: Thu, 28 Nov 1996 00:00
Date: Thu, 28 Nov 1996 00:00
26 lines
1873 bytes
1873 bytes
> This is probably a simple one, but I would like to know how to keep > animation active when a window looses focus. > > I am using MFC with Visual C++ v1.52. I am moving bitmaps across the view > window with bitblt's. Whenever I activate a dialog box or other > application, the animation visually stops, although it continues in memory. > When the animation window regains focus, the bitmaps move from where they > would have been if the window stayed active. I'm doing a similar thing but animating an OpenGL window. How are you doing the animation when it's in focus? I've been using SetTimer(1, 100, NULL), setting up an OnTimer() handler (which is really easy in MFC--or at least with Visual C++ 4.0), and it works great. It doesn't matter at all if it's in focus or not. Of course the timer has to redraw the window, but I usually just call OnPaint() from within my timer handler. Good luck, -joel -- taotree Tutor and Stuff Math and Physics Solver and thoughts on Creativity http://www.geocities.com/CapeCanaveral/8103/
Technical Details
Message-ID:
<329CF006.C6F@softopia.pref.gifu.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bbdbc8$729489e0$LocalHost@steve>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110a07,f78ff5eb042fc232 X-Google-Attributes: gid110a07,public X-Google-Thread: 105df1,f78ff5eb042fc232 X-Google-Attributes: gid105df1,public X-Google-Thread: 101278,f78ff5eb042fc232 X-Google-Attributes: gid101278,public From: Joel Shellman <shellman@softopia.pref.gifu.jp> Subject: Re: Background Animation Date: 1996/11/28 Message-ID: <329CF006.C6F@softopia.pref.gifu.jp> X-Deja-AN: 201155508 references: <01bbdbc8$729489e0$LocalHost@steve> content-type: text/plain; charset=iso-2022-jp organization: Softopia Japan mime-version: 1.0 reply-to: shellman@softopia.pref.gifu.jp newsgroups: comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.misc,fj.os.ms-windows.programming x-mailer: Mozilla 3.0Gold (WinNT; I)