🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1166

Moving ICONs neatly

#1166
From: Langham
Date: Mon, 28 Jan 1991 14:59
22 lines
1307 bytes
Hi !!

I would like to move the icon of a ball around the client area of
a window.

Using the WM_TIMER event I can compute the new position of the icon,
do an InvalidateRect() of the client area and send a WM_PAINT message
to the window to get the DrawIcon() done. Ok - works fine ....

The only trouble is that the icon tends to flash, so the movement isnt
smooth. I know that I should probably only InvalidateRect() the part
of the client area that will need redrawing, but..

Any other ideas on how to get this done *NEATLY* ? So all you
animation freaks and game writers - ideas please !

Matthew Langham
--
++ Matthew Langham   !USA : langham.pad@sni.de.com                      ++
++ ---------------    USA : langham.pad@nixdorf.com                     ++
++                        : SNI AG, Dept. DS FI ASDC, Pontanusstr. 55   ++
++ ---------------          D-4790 Paderborn  ((Ger)-5251-14-6345)      ++
Technical Details
Message-ID: <langham.665074791@peun19>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!zaphod.mps.ohio-state.edu!think.com!linus!nixbur!nixpbe!peun19!langham

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!zaphod.mps.ohio-state.edu!think.com!linus!nixbur!nixpbe!peun19!langham
From: langham@nixdorf.de (Langham)
Newsgroups: comp.windows.ms.programmer
Subject: Moving ICONs neatly
Message-ID: <langham.665074791@peun19>
Date: 28 Jan 91 14:59:51 GMT
Sender: news@nixpbe.sni.de
Lines: 22