home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: 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
-
- 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"
-