home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1784 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.1 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!unixg.ubc.ca!westwood.mech.ubc.ca!rohling
  2. From: rohling@westwood.mech.ubc.ca (Gerry Rohling)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Using SetCapture(hWnd)
  5. Keywords: Mouse SetCapture QuickC
  6. Message-ID: <1992Sep11.172209.27588@unixg.ubc.ca>
  7. Date: 11 Sep 92 17:22:09 GMT
  8. Sender: news@unixg.ubc.ca (Usenet News Maintenance)
  9. Organization: University of British Columbia, Vancouver, B.C., Canada
  10. Lines: 19
  11. Nntp-Posting-Host: westwood.mech.ubc.ca
  12.  
  13. I hope this is not an FAQ but here is my problem:
  14.  
  15. I am using QuickC 1.0 and am trying to gain control of all mouse input from a dialog
  16. box so that I can manipulate a cursor on another video display. From looking through 
  17. the manual I believe what you do is the following
  18.  
  19.     SetCapture(hWndDlg);
  20.     :
  21.     :
  22.     (process all window messages WN_MOUSEMOVE, WM_LBUTTONDOWN that I am
  23.     interested in. When the user sends a WM_RBUTTONDOWN I use a
  24.     ReleaseCapture();
  25.     :
  26.     :
  27.     Mouse messages are back to normal.
  28.  
  29.     Is this in any way correct or am I missing something?
  30.  
  31.     Thanks in advance for the assistance.
  32.