home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 1085 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.6 KB  |  40 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!microsoft!hexnut!gregde
  3. From: gregde@microsoft.com (Greg Demichillie)
  4. Subject: Re: Is it really this bad, or is it just me
  5. Message-ID: <1992Jul29.155112.7877@microsoft.com>
  6. Date: 29 Jul 92 15:51:12 GMT
  7. Organization: Microsoft Corporation
  8. References: <1992Jul28.090409.1@cortex> <1992Jul28.134522.11108@usenet.ins.cwru.edu>
  9. Lines: 28
  10.  
  11. In article <1992Jul28.134522.11108@usenet.ins.cwru.edu> turnbull@ces.cwru.edu (John Turnbull) writes:
  12. >In article <1992Jul28.090409.1@cortex> mboucher@cortex.prospect.com (Mike Boucher) writes:
  13. >>
  14. >>I've been having some screwy scroll bar problems as well, and Microsoft's
  15. >>Codeview does the same thing with multiple messages from one click.  
  16. >
  17. >    I think you'll find the problem is that windows never gets a mouse
  18. >up event, so it thinks you're holding down the mouse on the scroll down. I.e.
  19. >pressing the mouse button generates the linedown, and you then break, so 
  20. >windows never see you releasing the mouse button.
  21. >
  22.  
  23. This is exactly what happens.  The context switch into the debugger happens
  24. after the mouse down and so the mouse up event is given to the debugger.
  25.  
  26. This happens with every Windows debugger I've seen (including Codeview,
  27. TDW and Multiscope.)  The only work around I'm aware is to use
  28. OutputDebugString to print lots of messages in your mouse tracking
  29. code.  Using debuggers to step through mouse handling code just isn't
  30. my idea of fun. 
  31.  
  32. DISCLAIMER:  I don't work on Codeview, but I've used it and other
  33. debuggers quite a bit.
  34.  
  35. -Greg
  36.  
  37. -- 
  38. Greg DeMichillie          
  39. gregde@microsoft.com      -- All opinions are mine, not Microsoft's -- 
  40.