Path: 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: Date: 28 Jan 91 14:59:51 GMT Sender: news@nixpbe.sni.de Lines: 22 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) ++