home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3478 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!riacs!speclab.cr.usgs.gov!ngorelic
  3. From: ngorelic@speclab.cr.usgs.gov.cr.usgs.gov (Noel S. Gorelick)
  4. Subject: Re: How does Windows draw the "ghost frame"?
  5. Message-ID: <1992Nov17.023729.21175@riacs.edu>
  6. Sender: news@riacs.edu
  7. Reply-To: ngorelic@speclab.cr.usgs.gov
  8. Organization: MercWorks, Denver
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. References: <7046.921116@nasobem.stgt.sub.org>
  11. Date: Tue, 17 Nov 92 02:37:29 GMT
  12. Lines: 20
  13.  
  14. Jan Schiefer (jan@nasobem.stgt.sub.org) wrote:
  15. > Hi,
  16. > I am trying to draw a frame similar to the "ghost frame" Windows draws
  17. > when you move a window by dragging the caption bar. I am having problems,
  18. > however.
  19.  
  20. We had to do this.  The absolutly easiest way is to draw the ghost frame
  21. yourself using an XOR pen and DrawRect().  Force a WM_Paint of the thing
  22. you are drawing on top each time you draw your rectangle and you wont
  23. get any mouse jumping.  (if you dont force it, the WM_Paints happen whenever
  24. they feel like it and they jump pretty badly.)
  25.  
  26. If anyone has a better way, PLEASE let me know.  I spent more than a good man 
  27. week on this problem.
  28.  
  29. --
  30. "You want it should sing too?"   | /*  Yeah we got dogs and Valvoline
  31.   ngorelic@speclab.cr.usgs.gov   |     Its a pretty damn good time.    */
  32. "Life is pain. Anyone that tells you different is trying to sell you something"
  33.