home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3897 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.9 KB  |  44 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!cleveland.Freenet.Edu!br568
  3. From: br568@cleveland.Freenet.Edu (Rose Marie Smith)
  4. Subject: Help! Mouse droppings!
  5. Message-ID: <1992Jul30.153857.28902@usenet.ins.cwru.edu>
  6. Sender: news@usenet.ins.cwru.edu
  7. Nntp-Posting-Host: cwns5.ins.cwru.edu
  8. Organization: Case Western Reserve University, Cleveland, Ohio, (USA)
  9. Date: Thu, 30 Jul 92 15:38:57 GMT
  10. Lines:       33
  11.  
  12.  
  13. I've been having a pesky problem with a program I'm writing that
  14. uses a separate thread, with a MouReadEventQue loop, to
  15. respond to mouse movements.  When this program runs in full 
  16. screen mode, I need at times to temporarily turn off the mouse
  17. pointer in response to certain keystrokes.  The problem is that 
  18. when the user is entering these keystrokes, the mouse thread
  19. is blocking on the MouReadEventQue, which means that calls to
  20. MouRemovePtr don't work (they return a 121), and the next time
  21. the user moves the mouse, it leaves a 'dropping' at its old
  22. location.
  23.  
  24. I had hoped to find a solution by examining the code for the
  25. WORMS sample program that comes with the 2.0 toolkit, but, alas,
  26. WORMS also seems to have this problem!  Start it in full screen,
  27. move the mouse pointer to one of the letters at the top of the
  28. screen, and quit by keying the letter E.  Not only does it leave
  29. a mouse dropping, but you will find that the mouse is locked out
  30. if you try to restart the program in the same session!  The 
  31. second problem is solveable by doing a MouClose in ExitList
  32. processing, but I can't figure out how to eliminate the mouse
  33. droppings.  This isn't a problem if you run the program in
  34. a window, but my users want the option of running in full screen
  35. mode.
  36.  
  37. OS/2 gurus, can you help this newbie programmer?  I need a 
  38. solution that works in either full screen or windows.  Thanks
  39. in advance!
  40.  
  41. -- 
  42. Rose Marie Smith // Univ. of Wisconsin - Madison
  43. rose.smith@mail.admin.wisc.edu
  44.