🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Moving ICONs neatly

#1241
From: Gary Carter
Date: Sat, 02 Feb 1991 18:03
9 lines
965 bytes
Rather than using invalidate rect, you need to erase the image of the icon
at the old position and then redraw it at the new position.  In addition,
if the bounding rectangles for the old and new positions overlap, you
need to do this in a buffer first, then BitBlt the buffer to the screen
just once.  Petzold elaborates upon this subject in his Checkers article
in March 1990 Microsoft Systems Journal, under the subheading, "Moving
the pieces without flicker".

Hope this helps.
Technical Details
Message-ID: <1991Feb2.180356.23173@dbase.A-T.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!zaphod.mps.ohio-state.edu!usc!hacgate!ashtate!dbase!garyc
References: <langham.665074791@peun19>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!zaphod.mps.ohio-state.edu!usc!hacgate!ashtate!dbase!garyc
From: garyc@dbase.A-T.COM (Gary Carter)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Moving ICONs neatly
Message-ID: <1991Feb2.180356.23173@dbase.A-T.COM>
Date: 2 Feb 91 18:03:56 GMT
References: <langham.665074791@peun19>
Reply-To: garyc@dbase.UUCP (Gary Carter)
Organization: Ashton-Tate
Lines: 9