Article View: comp.os.ms-windows.programmer.misc
Article #2084Re: How does Windows draw the "ghost frame"?
From: Noel S. Gorelick
Date: Tue, 17 Nov 1992 02:37
Date: Tue, 17 Nov 1992 02:37
20 lines
1445 bytes
1445 bytes
Jan Schiefer (jan@nasobem.stgt.sub.org) wrote: > Hi, > > I am trying to draw a frame similar to the "ghost frame" Windows draws > when you move a window by dragging the caption bar. I am having problems, > however. We had to do this. The absolutly easiest way is to draw the ghost frame yourself using an XOR pen and DrawRect(). Force a WM_Paint of the thing you are drawing on top each time you draw your rectangle and you wont get any mouse jumping. (if you dont force it, the WM_Paints happen whenever they feel like it and they jump pretty badly.) If anyone has a better way, PLEASE let me know. I spent more than a good man week on this problem. -- "You want it should sing too?" | /* Yeah we got dogs and Valvoline ngorelic@speclab.cr.usgs.gov | Its a pretty damn good time. */ "Life is pain. Anyone that tells you different is trying to sell you something"
Technical Details
Message-ID:
<1992Nov17.023729.21175@riacs.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!riacs!speclab.cr.usgs.gov!ngorelicReferences:
<7046.921116@nasobem.stgt.sub.org>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!riacs!speclab.cr.usgs.gov!ngorelic From: ngorelic@speclab.cr.usgs.gov.cr.usgs.gov (Noel S. Gorelick) Subject: Re: How does Windows draw the "ghost frame"? Message-ID: <1992Nov17.023729.21175@riacs.edu> Sender: news@riacs.edu Reply-To: ngorelic@speclab.cr.usgs.gov Organization: MercWorks, Denver X-Newsreader: TIN [version 1.1 PL6] References: <7046.921116@nasobem.stgt.sub.org> Date: Tue, 17 Nov 92 02:37:29 GMT Lines: 20